Color reference

Midnight Blue #191970

Midnight Blue is the CSS named color midnightblue at #191970, a very dark blue-violet.

Midnight Blue is the CSS named color keyword midnightblue, standardized at #191970 in sRGB.

Midnight Blue #191970 14.85:1 with white text

Color values

HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240 64% 27%)
HSV240°, 78%, 44%
CMYK78%, 78%, 0%, 56%

HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.

Black or white text?

Black text 1.41:1 — AA normal text fails
White text 14.85:1 — AA normal text passes

AA normal text: black fails; white passes.

AA large text: black fails; white passes.

WCAG contrast thresholds use 4.5:1 for normal text and 3:1 for large text. Do not round a near-threshold result upward when testing conformance.

Tints and shades of Midnight Blue

These steps are computed by RGB-mixing #191970 toward white or black. They are generated values, not official named colors.

80% tint #D1D1E2
60% tint #A3A3C6
40% tint #7575A9
20% tint #47478D
Base #191970
20% shade #14145A
40% shade #0F0F43
60% shade #0A0A2D
80% shade #050516

Need more control? Use the Tints and Shades Generator or Lighten / Darken tool.

CSS usage

.example {
  color: #FFFFFF;
  background-color: midnightblue;
}

You can use either midnightblue or #191970 in CSS; both resolve to the same sRGB color.