Midnight
Also known as: Insomnia, Illicit Darkness, Erebus Blue, Mighty Midnight
Expect calm and trustworthy associations from Midnight — a deep blue well suited to trust-driven interfaces and corporate branding. Its complement lands in black territory, which makes for striking two-color pairings. Accessibility-wise, it clears AA for text on white at 20.07:1.
Midnight color codes
- HEX
- #03012D
- RGB
- rgb(3, 1, 45)
- RGBA
- rgba(3, 1, 45, 1)
- HSL
- hsl(243, 96%, 9%)
- HSV
- hsv(243, 98%, 18%)
- CMYK
- cmyk(93%, 98%, 0%, 82%)
- LAB
- lab(1.8 9.4 -26.0)
- OKLCH
- oklch(14.2% 0.088 270.7)
Color intelligence
Displays accurately on every screen and translates well to print.
Temperature
cool
Nearest standard colors
- CSS: midnightblue#191970 · ΔE 12.7
- RAL 5013 — Cobalt blue#232D53 · ΔE 11.3 · approximate
RAL values are widely published approximations of the physical standard. For Pantone-adjacent workflows, match by eye against a physical fan deck — Pantone's values are proprietary and device-dependent, so we don't print lookups.
Where Midnight works
- Web & UI: Use it directly for text on light surfaces; it clears AA contrast without adjustment.
- Interiors: Use it where you want the eye to land — front door, built-ins, or one bold wall.
- Fashion: One garment in this color carries an outfit; two starts to compete.
- Branding: The safest brand-primary family there is; differentiate with an unexpected accent.
- Web & UI: Use it decoratively — dividers, chart series, illustration accents — and let neutrals carry the type.
- Branding: Best in a brand's supporting palette — packaging interiors, patterns, campaign accents.
Copy as — every ecosystem
Tints, shades, and tones of Midnight
Tints (lighter)
Shades (darker)
Color harmonies
Palettes built from Midnight by rotating its hue in OKLCH space. Click any swatch to copy its hex code.
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Monochromatic
Contrast & accessibility
Aa — on white
contrast 20.07:1
AA passAAA passAA large pass
Aa — on black
contrast 1.05:1
AA failAAA failAA large fail
Best text color on a Midnight background: #ffffff
Palettes featuring Midnight
Midnight with its complement
Soft neighbors of Midnight
Midnight triad
Similar colors
- Oblivion#000435 · ΔE 2.1
- Storm#000B44 · ΔE 5.2
- Void#050D25 · ΔE 6.2
- Nightwalker#161D3B · ΔE 6.7
- Dark Knight#151931 · ΔE 6.9
- Azulado#211D49 · ΔE 7.4
Looking for maximum contrast instead? The complement of Midnight is closest to Balsamico.
Midnight FAQs
What color is Midnight?
Midnight is a dark blue with the hex code #03012D. In HSL terms it has a hue of 243°, 96% saturation, and 9% lightness.
What is the hex code for Midnight?
The hex code for Midnight is #03012D. In RGB it's rgb(3, 1, 45), and in CMYK it's cmyk(93%, 98%, 0%, 82%).
What colors go well with Midnight?
Midnight pairs naturally with black tones from its complementary harmony. Its own tints and shades always work as a monochrome scheme.
Got a photo with a color like this? Identify it with the analyzer — free, instant, private.