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.
| Format | Value | |
|---|---|---|
| HEX | #191970 | |
| RGB | rgb(25, 25, 112) | |
| HSL | hsl(240, 64%, 27%) | |
| CMYK | 78%, 78%, 0%, 56% | |
| CSS name | midnightblue |
.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.
Tints and shades of midnight blue
Tints mix the color with white; shades mix it with black.
Midnight Blue
Contrast and readability
1.41:1
fails
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.