BLUE

Midnight Blue

#191970
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%);
Contrast
On whitePass · 14.85 : 1
On ink blackFail · 1.29 : 1
Shades
Tints
Pairings

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.

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)

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.