Midnight blue #191970
Midnight blue is one of the named colours in CSS, written midnightblue. White text reaches 14.85:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | midnightblue |
|---|---|
| HEX | #191970 |
| RGB | rgb(25 25 112) |
| HSL | hsl(240 64% 27%) |
| OKLCH | oklch(28.8% 0.144 272.8) |
| White text | 14.85:1 · body text AA Pass |
| Black text | 1.41:1 · body text AA Fail |
Colours that go with Midnight blue
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Dull Violet Black (#1E0E3F), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Midnight blue itself.
| Colour | HEX | Contrast with Midnight blue | Body text AA |
|---|---|---|---|
| Yellow | #FFF200 | 12.69:1 | Pass |
| Lemon Yellow | #F8ED43 | 12.15:1 | Pass |
| Apricot Yellow | #FFDD00 | 11.03:1 | Pass |
| Cream Yellow | #FDBF68 | 9.07:1 | Pass |
| Light Green Yellow | #C7D14F | 8.95:1 | Pass |
| Citron Yellow | #B2B73E | 6.88:1 | Pass |
| Olive Yellow | #A6A159 | 5.56:1 | Pass |
| Spinel Red | #F27291 | 5.37:1 | Pass |
| Old Rose | #D46D7A | 4.43:1 | Fail |
| Light Mauve | #9A72AA | 3.79:1 | Fail |
| Olive | #837E31 | 3.53:1 | Fail |
| Indian Lake | #C53C69 | 2.99:1 | Fail |
| Rosolanc Purple | #B73F74 | 2.81:1 | Fail |
| Blue | #006EB8 | 2.77:1 | Fail |
| Antwarp Blue | #007190 | 2.66:1 | Fail |
| Brown | #7C4226 | 1.88:1 | Fail |
| Violet | #4F4086 | 1.70:1 | Fail |
| Hay's Russet | #793327 | 1.64:1 | Fail |
| Violet Blue | #40456A | 1.61:1 | Fail |
Palettes with Dull Violet Black
- Combination #95 Hay's Russet · Dull Violet Black
- Combination #106 Antwarp Blue · Dull Violet Black
- Combination #145 Brown · Citron Yellow · Dull Violet Black
- Combination #265 Old Rose · Apricot Yellow · Olive Yellow · Dull Violet Black
- Combination #277 Spinel Red · Rosolanc Purple · Olive · Dull Violet Black
- Combination #289 Lemon Yellow · Light Green Yellow · Violet Blue · Dull Violet Black
- Combination #295 Cream Yellow · Yellow · Blue · Dull Violet Black
- Combination #331 Indian Lake · Dull Violet Black · Light Mauve · Violet
Shades and tints of Midnight blue
Nine lightness steps in OKLCH that keep the hue of Midnight blue. Chroma is reduced only where sRGB cannot show it.
- 100#F2F5FF
- 200#DCE4FF
- 300#BDCBFF
- 400#97ABFF
- 500#758AE9
- 600#5768C4
- 700#3D4AA3
- 800#252D83
- 900#130A64
:root {
--midnightblue-100: #F2F5FF;
--midnightblue-200: #DCE4FF;
--midnightblue-300: #BDCBFF;
--midnightblue-400: #97ABFF;
--midnightblue-500: #758AE9;
--midnightblue-600: #5768C4;
--midnightblue-700: #3D4AA3;
--midnightblue-800: #252D83;
--midnightblue-900: #130A64;
}
Text that keeps Midnight blue on screen
Text #191970 on #F2F5FF reaches 13.63:1, which passes WCAG AA for body text. Check it on a dashboard