WordGPT

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.

#191970
Midnight blue: #191970
Complementary#191970#707019Analogous#194570#191970#451970Triadic#191970#701919#197019Tetradic (square)#191970#701945#707019#197045Split complementary#191970#704519#457019
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
0404130808250d0d3811114b15155d1919703f3f886666a08c8cb8b2b2cfd9d9e7
From dark shades (left, mixed with black) to light tints (right, mixed with white)

How to work it out

  1. 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. 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.

    H=240∘,S=64%,L=27%H=240^\circ,\quad S=64\%,\quad L=27\%
  3. 3

    The complementary colour sits opposite on the wheel: add 180° to the hue.

    240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#707019}
  4. 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).

    contrast=L1+0.05L2+0.05=14.85:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 14.85:1\ \text{(on white)}
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

FormatValue
HEX#191970
RGBrgb(25, 25, 112)
RGB (percent)rgb(9.8%, 9.8%, 43.9%)
HSLhsl(240, 64%, 27%)
HSV / HSBhsv(240, 78%, 44%)
CMYKcmyk(78%, 78%, 0%, 56%)
Decimal1644912
Descriptiondark blue
CSS namemidnightblue

Text contrast (WCAG)

Background of this colour with…ContrastAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White text14.85:1passpasspasspass
Black text1.41:1failfailfailfail

Shades and tints

KindHex 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

TypeHexDistance from the original
Protanopia#002C7315
Deuteranopia#00236E10
Tritanopia#00324353
Grayscale#272727-

Nearest named colours

NameHex
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".

Matching colours

A little darker, a little lighter

Make a palette

    Midnight blue (#191970): color code, RGB, HSL, shades and palettes | WordGPT