Midnight Blue color: hex code #191970

#191970 rgb(25, 25, 112)
Shades of blue

Midnight Blue has the hex code #191970. It is a dark, moderate blue.

In the RGB color model it is made of 9.8% red, 9.8% green and 43.9% blue (25, 25, 112).

Its hue angle is 240°, with 64% saturation and 27% lightness. For print, the CMYK equivalent is 78% cyan, 78% magenta, 0% yellow and 56% black.

This exact color is also called 20000 Leagues Under the Sea.

You can use it in CSS with the keyword midnightblue.

White text is the more readable choice on this background (contrast 14.85:1).

Midnight Blue (#191970) color codes

HEX#191970
RGBrgb(25, 25, 112)
RGB percentrgb(9.8%, 9.8%, 43.9%)
HSLhsl(240, 64%, 27%)
HSV / HSBhsv(240, 78%, 44%)
CMYKcmyk(78%, 78%, 0%, 56%)
CIE LABlab(15.86, 31.71, -49.57)
CIE LCHlch(15.86, 58.85, 302.61)
CIE XYZxyz(3.672, 2.071, 15.532)
Decimal1644912
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Midnight Blue, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #191970RatioAAAAAAA large
Sample text1.41:1FailFailFail
Sample text14.85:1PassPassPass
#191970 as text onRatioAAAAAAA large
Sample text14.85:1PassPassPass
Sample text1.41:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #191970 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #191970; }
.text { color: #191970; }
.border { border: 2px solid #191970; }
.transparent { background-color: rgb(25 25 112 / 50%); }
.gradient { background: linear-gradient(to right, #191970, #451970); }
Background
Text color
Border

Similar colors

See #191970 on its hex code page

Questions

What color is #191970?
#191970 is a dark, moderate blue known as Midnight Blue. It belongs to the blue family of colors.
What is the RGB value of Midnight Blue?
The RGB value is 25, 25, 112: 25 red, 25 green and 112 blue on a 0 to 255 scale.
What is the complementary color of Midnight Blue?
The complementary color is #707019, found by rotating the hue 180° on the color wheel.
Is black or white text better on #191970?
White text. Black text has a contrast ratio of 1.41:1 and white text 14.85:1. WCAG asks for at least 4.5:1 for normal text.