Midnight Blue
#191970rgb(25, 25, 112)hsl(240, 64%, 27%)
Midnight Blue is #191970, rgb(25, 25, 112).
In CSS: midnightblue
Colors that go with Midnight Blue
Complementary
Analogous
Triadic
1 of 2 backgrounds pass AA
- On whitePass14.85 : 1
- On ink blackFail1.29 : 1
About Midnight Blue
Midnight Blue is the hex color #191970, which translates to rgb(25, 25, 112) in RGB and hsl(240, 64%, 27%) in HSL. On the color wheel it sits at 240 degrees, with a saturation of 64 percent and a lightness of 27 percent. That combination gives Midnight Blue a saturated mid tone: strong enough for buttons and links, still calm enough for larger areas.
How Midnight Blue compares
Midnight Blue is exactly the CSS keyword midnightblue, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is violet-950 (#2F0D68), at a distance of 7.3. Inside this library the closest neighbour is Web Purple at 18.6. Sorted by lightness, Midnight Blue is number 3 of the 30 blue colors here.
Text on Midnight Blue
2 of the five common text colors below clear WCAG AA for normal text on Midnight Blue, led by White at 14.85:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Midnight Blue already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 14.85:1 | Pass | Pass | Pass |
| Ink black #0F0F12 | 1.29:1 | Fail | Fail | Fail |
| Mid grey #6B7280 | 3.07:1 | Fail | Pass | Fail |
| Dark grey #374151 | 1.44:1 | Fail | Fail | Fail |
| Light grey #E5E7EB | 11.99:1 | Pass | Pass | Pass |
Building a palette around Midnight Blue
The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Midnight Blue for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Midnight Blue locked and let it fill in the rest.
Full values for Midnight Blue
| Format | Value |
|---|---|
| HEX | #191970 |
| RGB | rgb(25, 25, 112) |
| HSL | hsl(240, 64%, 27%) |
| HSV | hsv(240, 78%, 44%) |
| CMYK | cmyk(78%, 78%, 0%, 56%) |
| OKLCH | oklch(28.81% 0.1436 272.76) |
| CIELAB | lab(15.86 31.71 -49.57) |
Frequently asked questions
What is the RGB value of Midnight Blue?
Midnight Blue (#191970) is rgb(25, 25, 112): 25 red, 25 green and 112 blue on the 0 to 255 scale. Blue leads at 112 while red and green both sit at 25, which puts the hue at 240 degrees. In HSL the same color is hsl(240, 64%, 27%).
What colour is #191970?
#191970 is Midnight Blue, a dark blue colour with a hue of 240 degrees, 64% saturation and 27% lightness. For print the CMYK breakdown is 78% cyan, 78% magenta, 0% yellow and 56% black. Its nearest neighbour in this library is Web Purple, 18.6 away in CIELAB, a difference you can see.
Is Midnight Blue a CSS color name?
Yes. The keyword midnightblue is one of the 148 named colors in CSS Color Module Level 4, so color: midnightblue; renders exactly #191970.
What colors go with Midnight Blue?
Opposite Midnight Blue on the color wheel sits the complementary #707019, the boldest accent by hue. For a calmer scheme use the analogous neighbours #194470 and #441970; for a balanced three-color scheme use the triadic pair #701919 and #197019. Of these, #707019 has the most contrast against Midnight Blue, at 2.84:1, so pair it by hue, not for legibility.
What text color is readable on Midnight Blue?
White (#FFFFFF) is the most readable on Midnight Blue, at 14.85:1, which also clears WCAG AAA (7:1). 2 of the 5 common text colors tested pass AA for normal text.
Use Midnight Blue in a tool
Nearby colors
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.