midnightblue (#191970)

midnightblue is a CSS named color with the hex code #191970, rgb(25, 25, 112). It is a dark, saturated indigo.

midnightblue#191970
Keywordmidnightblue
HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)

Full #191970 details: palettes, shades, color-blind view →

Description

Midnightblue (read as "midnight blue") has a hue of 240°, saturation 64% and lightness 27%, which places it in the blue family. Its strongest channel is blue (112).

Using midnightblue in CSS

.title { color: midnightblue; }
.box   { background: midnightblue; border-color: #191970; }
.soft  { background: rgb(25 25 112 / 20%); }   /* midnightblue at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
navy#0000800, 0, 1285.6
darkblue#00008b0, 0, 1396.2
indigo#4b008275, 0, 1308.9
darkslateblue#483d8b72, 61, 13911
mediumblue#0000cd0, 0, 20512.5
rebeccapurple#663399102, 51, 15313.9
blue#0000ff0, 0, 25518
purple#800080128, 0, 12818.4

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 14.85:1; with black text: 1.41:1. White body text on midnightblue meets WCAG AA.

Frequently asked questions

What is the hex code for midnightblue?
#191970.
What colors are similar to midnightblue?
navy (#000080), darkblue (#00008b), indigo (#4b0082).