AfoliOpen Afoli →

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%.

Open in Afoli Colour tools →

#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

PairWCAG 2.x ratioAPCA LcResult
Midnight Blue text on white14.85 : 1101AAA — any text
Midnight Blue text on black1.41 : 10Fails for text
White text on Midnight Blue14.85 : 1-104AAA — any text
Black text on Midnight Blue1.41 : 10Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

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

Sources and licences

Updated November 21, 2026