Midnight Blue color #191970
Midnight Blue is one of the CSS named colors (keyword midnightblue) with the hex code #191970 — RGB 25, 25, 112, HSL 240°, 64%, 27%.
#191970Midnight Blue
Color codes
- HEX
#191970- RGB
rgb(25, 25, 112)- HSL
hsl(240, 64%, 27%)- CMYK
78%, 78%, 0%, 56%- OKLCH
oklch(28.8% 0.144 272.8)- CSS keyword
midnightblue
Tints and shades
#F2F5FF#CDD9FF#AABCFF#889EFF#7084E3#596BC8#4453AD#303A92#1E2178#10035F#050033
Color harmonies
Complementary
#191970#352A00
Analogous
#002E4A#191970#3A0663
Triadic
#191970#540900#003517
Split complementary
#191970#412200#253000
Tetradic
#191970#540025#352A00#00332D
Contrast with text
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Midnight Blue text on white | 14.85 : 1 | 101 | AAA — any text |
| Midnight Blue text on black | 1.41 : 1 | 0 | Fails for text |
| White text on Midnight Blue | 14.85 : 1 | -104 | AAA — any text |
| Black text on Midnight Blue | 1.41 : 1 | 0 | Fails for text |
Palettes with this color
- Midnight Blue & Lavender
- Marine & Pale Lilac
- Midnight Blue & Gainsboro
- Marine & Light Blue
- Night Blue & Alice Blue
- Marine & Papaya Whip
Frequently asked questions
What is the hex code of Midnight Blue?
Midnight Blue has the hex code #191970, which is RGB 25, 25, 112 and HSL 240°, 64%, 27%.
Which text color reads best on Midnight Blue?
White text: contrast 14.85 : 1 (black text: 1.41 : 1).
Which colors go well with Midnight Blue?
Its complementary color is #352A00; analogous colors are #002E4A and #3A0663; a triadic set adds #540900 and #003517.
Similar colors
- Dark Royal Blue #02066F
- Navy #000080
- Marine #042E60
- Dark Blue #00008B
- Dark Indigo #1F0954
- Royal #0C1793
- Marine Blue #01386A
- Navy Blue #001146
- Cobalt Blue #030AA7
- Night Blue #040348
Sources and licences
- CSS Color Module Level 4 — named colors (W3C Software and Document License)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)