Midnight blue color: hex codes, shades and palettes
Palettes built around midnight blue. Click any swatch to copy its hex code.
Nearly black, with just enough blue left to read as a colour rather than a neutral. Useful when a dark interface needs to feel cool without going grey.
No midnight blue palettes yet
Run npm run generate to build the dataset.
Midnight blue hex, RGB, HSL and OKLCH
- HEX
#111D33- RGB
rgb(17, 29, 51)- HSL
hsl(219, 50%, 13%)- OKLCH
oklch(23.2% 0.046 261.7)- On white
- 16.84:1
- On black
- 1.25:1
Shades of midnight blue
Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Contrast and readability
Midnight blue on white measures 16.84:1 and on black 1.25:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.30:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.