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.
- HEX
#191970 - RGB
rgb(25 25 112) - HSL
hsl(240 64% 27%) - OKLCH
oklch(28.8% 0.144 273)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Midnight Blue | #191970 | 25, 25, 112 | 240°, 64%, 27% | 78, 78, 0, 56 | 28.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.
- HEX
#191970 - RGB
rgb(25 25 112) - HSL
hsl(240 64% 27%)
Variations of Midnight Blue
Text on Midnight Blue
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
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
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.
- Midnight Blue Complementary Color Scheme#191970#2425B9#706C11#36310D#CCCB2F
- Midnight Blue Analogous Color Scheme#1F7073#1B416F#191970#441166#751973
- Midnight Blue Triadic Color Scheme#191970#701C1C#116611#243BCD#331111
- Midnight Blue Split-complementary Color Scheme#191970#704214#536B1F#090533#AA6D28
- Midnight Blue Tetradic Color Scheme#191970#78184A#706C11#177245#243BCD
- Midnight Blue Monochromatic Color Scheme#090615#090533#191970#2425B9#4D52DE
Nearest CSS named colors
- Navy (
navy): Navy (#000080) is darker than Midnight Blue (relative luminance 0.016 vs 0.021) and more saturated, with the same hue. - Dark Blue (CSS) (
darkblue): Dark Blue (CSS) (#00008B) is about as light as Midnight Blue (relative luminance 0.019 vs 0.021) and more saturated, with the same hue. - Indigo (
indigo): Indigo (#4B0082) is lighter than Midnight Blue (relative luminance 0.031 vs 0.021) and more saturated, with its hue 35° away. - Dark Slate Blue (
darkslateblue): Dark Slate Blue (#483D8B) is lighter than Midnight Blue (relative luminance 0.066 vs 0.021) and less saturated, with its hue 8° away.
Similar dark blue colors
- 20000 Leagues Under the Sea#191970
- 3AM in Shibuya#225577
- Abyssal#404C57
- Aegean Blue#1B416F
- Alone in the Dark#000066
- Assassin#2D4F83
- Astral#376F89
- Atlantic Navy#13336F
- Atlantis#336172
- Below the Surface#0A2F7C
- Beyond the Sea#005784
- Black Market#222244
- Black Sea Night#052462
- Black Turmeric#2C4364
- Blue Chip#1D5699
- Blue Funk#2D4470
- Blue Hour#0034AB
- Blue Screen of Death#0033BB
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.