White text passes AAA
14.85:1

Midnight Blue

#191970
PNG

The midnight blue hex code is #191970, and its RGB value is 25, 25, 112.

Midnight blue is a very dark blue with a slight purple tint, close to navy, defined in CSS as midnightblue #191970. It's popular for evening wear, night-themed designs and dark backgrounds that feel softer than black. White text reaches 14.9:1 on it.

Midnight Blue color codes

HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)
OKLCHoklch(28.8% 0.144 272.8)
CMYKcmyk(78%, 78%, 0%, 56%)
CMYK is an approximate screen conversion, not for print matching.

Shades of midnight blue

Ten lighter and ten darker shades of midnight blue, with midnight blue in the middle. Click a shade to copy its hex code.

LightestMidnight Blue #191970Darkest

Readability

White text on midnight blueNormal text at 16px. The quick brown fox jumps over the lazy dog.
14.85:1
  • Passes AA normal
  • Passes AA large
  • Passes AAA normal
  • Passes AAA large
Dark text on midnight blueNormal text at 16px. The quick brown fox jumps over the lazy dog.
1.41:1
  • Fails AA and AAA

Colors that go with midnight blue

#191970#707019

Complementary

The opposite on the color wheel
#194570#191970#451970

Analogous

Its two neighbors
#191970#701919#197019

Triadic

Three evenly spaced colors
#191970#704519#457019

Split-complementary

The two colors beside its opposite

Midnight Blue color palettes

Monochrome

Lighter and darker versions of the same color.

Analogous

Neighbors on the color wheel, for a calm, related look.

Complementary

The color with its opposite, for strong contrast.

Triadic

Three colors evenly spaced around the wheel, with a light and dark version.

Midnight Blue background

Plain and gradient midnight blue backgrounds for phone and desktop wallpapers, slides and mockups, free to download.

Solid midnight blue background

Midnight Blue gradient background

Questions about midnight blue

What is the hex code for midnight blue?

The hex code for midnight blue is #191970. In RGB it's rgb(25, 25, 112), and in HSL it's hsl(240, 64%, 27%).

What is the RGB value of midnight blue?

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

What colors go with midnight blue?

Its complementary color is #707019. For a calmer look, try the analogous colors #194570 and #451970, or one of the palettes above, which all include midnight blue.

Is text readable on midnight blue?

White text is the better choice, with a contrast ratio of 14.85:1. That passes WCAG AA for normal text.