Huebook

Midnight

Midnight is a near-black, saturated blue-violet color with the hex code #03012D (hue 243°, saturation 96%, lightness 9%).

#03012D
NameHEXRGBHSLCMYKOKLCH
Midnight#03012D3, 1, 45243°, 96%, 9%93, 98, 0, 8214.2% 0.088 271

Contrast with white text 20.07:1, with black text 1.05:1 — use white text on Midnight.

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

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

Midnight
  • HEX#03012D
  • RGBrgb(3 1 45)
  • HSLhsl(243 96% 9%)

Variations of Midnight

Text on Midnight

White textThe quick brown fox20.07:1 · AA pass · AAA pass
Black textThe quick brown fox1.05: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 with color blindness

Normal #03012D
Protanopia #000A2E
Deuteranopia #00062C
Tritanopia #000D16

How Midnight 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

#CFCDFE
#8882FC
#4037FB
#0F05E1
#0A0396
#05024B

Colors that go with Midnight

Six color schemes built on Midnight with classic harmony rules. The complementary scheme pairs it with Wasabi Nori (#333300), the color opposite it on the color wheel.

Nearest CSS named colors

Similar very dark blue colors

Questions

What is the hex code for Midnight?

#03012D — RGB 3, 1, 45, HSL 243°, 96%, 9%.

Is Midnight a warm or cool color?

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