Royal blue color (#4169E1)
#4169E1 (Royal blue) is a blue colour. It is rgb(65, 105, 225) in RGB and hsl(225, 73%, 57%) in HSL. Text in white reads better on it: the contrast is 4.85:1 against white and 4.33:1 against black.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#4169E1}:\quad R=\mathrm{41}_{16}=65,\ G=\mathrm{69}_{16}=105,\ B=\mathrm{E1}_{16}=225 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
225^\circ + 180^\circ = 45^\circ ;\Rightarrow; \mathrm{#E1B941} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#4169E1} = \mathrm{rgb}(65, 105, 225) \]
\[ \mathrm{#4169E1}:\quad R=\mathrm{41}_{16}=65,\ G=\mathrm{69}_{16}=105,\ B=\mathrm{E1}_{16}=225 \]
\[ H=225^\circ,\quad S=73\%,\quad L=57\% \]
\[ 225^\circ + 180^\circ = 45^\circ ;\Rightarrow; \mathrm{#E1B941} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 4.85:1\ \text{(on white)} \]Royal blue in every colour format
| Format | Value |
|---|---|
| HEX | #4169E1 |
| RGB | rgb(65, 105, 225) |
| RGB (percent) | rgb(25.5%, 41.2%, 88.2%) |
| HSL | hsl(225, 73%, 57%) |
| HSV / HSB | hsv(225, 71%, 88%) |
| CMYK | cmyk(71%, 53%, 0%, 12%) |
| Decimal | 4286945 |
| Description | blue |
| CSS name | royalblue |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 4.85:1 | pass | pass | fail | pass |
| Black text | 4.33:1 | fail | pass | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #0B1125 #16234B #213571 #2B4696 #3658BC |
| This colour | #4169E1 |
| Tints (mixed with white) | #6182E6 #809BEB #A0B4F0 #C0CDF5 #DFE6FA |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #0879E5 | 14 |
| Deuteranopia | #006ADF | 7 |
| Tritanopia | #00869B | 67 |
| Grayscale | #717171 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Slate blue | #6A5ACD |
| Medium slate blue | #7B68EE |
| Medium purple | #9370DB |
| Dodger blue | #1E90FF |
Questions
What is the RGB value of #4169E1?
rgb(65, 105, 225): red 65, green 105, blue 225.
What is the HSL value of #4169E1?
hsl(225, 73%, 57%): a hue of 225°, 73% saturation and 57% lightness.
What is the complementary colour of #4169E1?
#E1B941, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #BE961E.
Should I use white or black text on #4169E1?
White. White gives 4.85:1 and black 4.33:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #4169E1?
cmyk(71%, 53%, 0%, 12%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #4169E1 a named colour?
Yes: it is the CSS colour name "royalblue".