Midnight blue color (#191970)
#191970 (Midnight blue) is a dark blue colour. It is rgb(25, 25, 112) in RGB and hsl(240, 64%, 27%) in HSL. Text in white reads better on it: the contrast is 14.85:1 against white and 1.41: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{#191970}:\quad R=\mathrm{19}_{16}=25,\ G=\mathrm{19}_{16}=25,\ B=\mathrm{70}_{16}=112 - 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.
240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#707019} - 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{#191970} = \mathrm{rgb}(25, 25, 112) \]
\[ \mathrm{#191970}:\quad R=\mathrm{19}_{16}=25,\ G=\mathrm{19}_{16}=25,\ B=\mathrm{70}_{16}=112 \]
\[ H=240^\circ,\quad S=64\%,\quad L=27\% \]
\[ 240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#707019} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 14.85:1\ \text{(on white)} \]Midnight blue in every colour format
| Format | Value |
|---|---|
| HEX | #191970 |
| RGB | rgb(25, 25, 112) |
| RGB (percent) | rgb(9.8%, 9.8%, 43.9%) |
| HSL | hsl(240, 64%, 27%) |
| HSV / HSB | hsv(240, 78%, 44%) |
| CMYK | cmyk(78%, 78%, 0%, 56%) |
| Decimal | 1644912 |
| Description | dark blue |
| CSS name | midnightblue |
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 | 14.85:1 | pass | pass | pass | pass |
| Black text | 1.41:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #040413 #080825 #0D0D38 #11114B #15155D |
| This colour | #191970 |
| Tints (mixed with white) | #3F3F88 #6666A0 #8C8CB8 #B2B2CF #D9D9E7 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #002C73 | 15 |
| Deuteranopia | #00236E | 10 |
| Tritanopia | #003243 | 53 |
| Grayscale | #272727 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dark slate blue | #483D8B |
| Rebecca purple | #663399 |
| Indigo | #4B0082 |
| Navy | #000080 |
Questions
What is the RGB value of #191970?
rgb(25, 25, 112): red 25, green 25, blue 112.
What is the HSL value of #191970?
hsl(240, 64%, 27%): a hue of 240°, 64% saturation and 27% lightness.
What is the complementary colour of #191970?
#707019, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #E6E68F.
Should I use white or black text on #191970?
White. White gives 14.85:1 and black 1.41:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #191970?
cmyk(78%, 78%, 0%, 56%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #191970 a named colour?
Yes: it is the CSS colour name "midnightblue".