BLUE

Midnight Blue

No. 063

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

Midnight Blue is #191970, rgb(25, 25, 112).

In CSS: midnightblue

Conversions
HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)
HSVhsv(240, 78%, 44%)
CMYKcmyk(78%, 78%, 0%, 56%)
Copy CSS
color: #191970; /* rgb */ color: rgb(25, 25, 112); /* hsl */ color: hsl(240, 64%, 27%);
Shades
Tints

Colors that go with Midnight Blue

  • Complementary

  • Analogous

  • Triadic

Contrast

1 of 2 backgrounds pass AA

  1. On whitePass14.85 : 1
  2. 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.

Contrast of common text colors on Midnight Blue. AA normal text needs 4.5:1, AA large text and non-text elements need 3:1, AAA normal text needs 7:1.
Text colorRatioAA normalAA largeAAA normal
White #FFFFFF14.85:1PassPassPass
Ink black #0F0F121.29:1FailFailFail
Mid grey #6B72803.07:1FailPassFail
Dark grey #3741511.44:1FailFailFail
Light grey #E5E7EB11.99:1PassPassPass

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

FormatValue
HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)
HSVhsv(240, 78%, 44%)
CMYKcmyk(78%, 78%, 0%, 56%)
OKLCHoklch(28.81% 0.1436 272.76)
CIELABlab(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.