Midnight Blue Color

HEX #191970 · rgb(25, 25, 112) · hsl(240, 64%, 27%)

Midnight Blue color codes

Midnight Blue is one of the named colors every browser understands. In CSS you can write it as midnightblue or #191970.

FormatValue
HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)
CMYK78%, 78%, 0%, 56%
CSS namemidnightblue
.example {
  color: midnightblue;
  background-color: #191970;
  border-color: rgb(25, 25, 112);
}

Colors that go with midnight blue

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#707019Complementary
#194570Analogous
#451970Analogous
#701919Triadic
#197019Triadic

Tints and shades of midnight blue

Tints mix the color with white; shades mix it with black.

#E8E8F190% white
#C6C6DB75% white
#A3A3C660% white
#8181B045% white
#5E5E9B30% white
#3C3C8515% white
#191970Base
Midnight Blue
#15155F15% black
#12124E30% black
#0E0E3E45% black
#0A0A2D60% black
#06061C75% black
#03030B90% black

Contrast and readability

Black text
1.41:1
fails
White text
14.85:1
passes AA and AAA

Use white text on midnight blue. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for midnight blue?

The hex code for midnight blue is #191970.

What is the RGB value of midnight blue?

Midnight Blue is rgb(25, 25, 112): 25 red, 25 green and 112 blue on a 0 to 255 scale.

What color goes with midnight blue?

Its complementary color is #707019, which is closest to the named color olive drab. Analogous and triadic matches are listed on this page.

Should text on midnight blue be black or white?

Use white text. The contrast ratio is 1.41:1 with black and 14.85:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.