Huebook

Midnight Blue

Midnight Blue is a very dark, saturated blue-violet color with the hex code #191970 (hue 240°, saturation 64%, lightness 27%). It is also the CSS named color midnightblue.

#191970
NameHEXRGBHSLCMYKOKLCH
Midnight Blue#19197025, 25, 112240°, 64%, 27%78, 78, 0, 5628.8% 0.144 273

Contrast with white text 14.85:1, with black text 1.41:1 — use white text on Midnight Blue.

midnightblue is one of the 148 named colors in CSS, with exactly this value, so color: midnightblue works in any browser without a hex code.

Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work

Adjust Midnight Blue

Move the sliders to make Midnight Blue lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.

Midnight Blue
  • HEX#191970
  • RGBrgb(25 25 112)
  • HSLhsl(240 64% 27%)

Variations of Midnight Blue

Text on Midnight Blue

White textThe quick brown fox14.85:1 · AA pass · AAA pass
Black textThe quick brown fox1.41:1 · AA fail · AAA fail

WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.

Midnight Blue with color blindness

Normal #191970
Protanopia #002C73
Deuteranopia #00236E
Tritanopia #003243

How Midnight Blue appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.

Tints and shades

#D5D5F6
#9797E8
#5858DA
#2A2ABC
#1C1C7D
#0E0E3F

Colors that go with Midnight Blue

Six color schemes built on Midnight Blue with classic harmony rules. The complementary scheme pairs it with Brown Green (#706C11), the color opposite it on the color wheel.

Nearest CSS named colors

Similar dark blue colors

Questions

What is the hex code for Midnight Blue?

#191970 — RGB 25, 25, 112, HSL 240°, 64%, 27%.

Is Midnight Blue a warm or cool color?

Cool — its hue sits at 240° on the color wheel.