Midnight
Midnight is a near-black, saturated blue-violet color with the hex code #03012D (hue 243°, saturation 96%, lightness 9%).
- HEX
#03012D - RGB
rgb(3 1 45) - HSL
hsl(243 96% 9%) - OKLCH
oklch(14.2% 0.088 271)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Midnight | #03012D | 3, 1, 45 | 243°, 96%, 9% | 93, 98, 0, 82 | 14.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.
- HEX
#03012D - RGB
rgb(3 1 45) - HSL
hsl(243 96% 9%)
Variations of Midnight
Text on Midnight
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
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
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.
- Midnight Complementary Color Scheme#03012D#000088#333300#1F180A#929000
- Midnight Analogous Color Scheme#012731#041330#03012D#110033#2E0329
- Midnight Triadic Color Scheme#03012D#2E0303#002D04#120A8F#1D0200
- Midnight Split-complementary Color Scheme#03012D#2D1403#113300#01081C#774400
- Midnight Tetradic Color Scheme#03012D#300018#333300#002F0F#120A8F
- Midnight Monochromatic Color Scheme#01081C#01081C#03012D#040273#1100CC
Nearest CSS named colors
- Midnight Blue (
midnightblue): Midnight Blue (#191970) is lighter than Midnight (relative luminance 0.021 vs 0.002) and less saturated, with its hue 3° away. - Navy (
navy): Navy (#000080) is lighter than Midnight (relative luminance 0.016 vs 0.002) and equally saturated, with its hue 3° away. - Black (
black): Black (#000000) is about as light as Midnight (relative luminance 0.000 vs 0.002) and less saturated. - Dark Blue (CSS) (
darkblue): Dark Blue (CSS) (#00008B) is lighter than Midnight (relative luminance 0.019 vs 0.002) and equally saturated, with its hue 3° away.
Similar very dark blue colors
- Astral Nomad#203943
- Azulado#211D49
- Beyond the Stars#0A3251
- Black Pearl#1E272C
- Black Velvet#222233
- Blue Whale#1E3442
- Cinder#242A2E
- Corbeau#111122
- Dark#1B2431
- Dark Eclipse#112244
- Dark Knight#151931
- Dark Soul#112255
- Deadly Depths#111144
- Eclipse Elixir#1F2133
- Eigengrau#16161D
- Endless Galaxy#000044
- Eternal Darkness#1C2841
- Illicit Darkness#00022E
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.