midnightblue
#191970 · CSS color name
midnightblue is the CSS color name for #191970: RGB(25, 25, 112), HSL(240°, 64%, 27%), CMYK(78%, 78%, 0%, 56%). Contrast is 14.85:1 on white and 1.41:1 on black. See shades, harmonies and color-blindness simulation.
Color Codes
| HEX | #191970 |
|---|---|
| CSS color name | midnightblue |
| RGB | rgb(25 25 112) |
| RGB (legacy) | rgb(25, 25, 112) |
| RGB % | rgb(10% 10% 44%) |
| HSL | hsl(240 64% 27%) |
| HSV / HSB | hsv(240, 78%, 44%) |
| HWB | hwb(240 10% 56%) |
| CMYK | cmyk(78%, 78%, 0%, 56%) |
| CIELAB (D50) | lab(14.93 25.96 -50.9) |
| LCH | lch(14.93 57.14 297.02) |
| OKLab | oklab(0.2881 0.0069 -0.1435) |
| OKLCH | oklch(0.2881 0.1436 272.76) |
| Decimal | 1644912 |
Properties
| Color Tone | Blue, Sky, Navy |
|---|---|
| Closest named color | midnightblue ΔE 0 |
| Closest web-safe color | #000066 |
| Hue | 240° |
| Saturation (HSL / HSV) | 64% / 78% |
| Lightness (HSL) | 27% |
| Brightness or Value (HSV) | 44% |
| Luminance (Rec.601 / Rec.709) | 14% / 12% |
| Relative luminance (WCAG) | 0.0207 |
| Red / Green / Blue | 25 / 25 / 112 |
WCAG 2.2 Contrast Ratio
On White (#ffffff)
14.85:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.41:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123
APCA Contrast Lc (reference) — As text on white / black: Lc 101 / 0 · As background with white / black text: Lc -104 / 0
Lightness Scale (OKLCH 50–950)
Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.
Tints (mixed with white)
Shades (mixed with black)
Color Harmonies
Complementary
Split Complementary
Analogous
Color Vision Deficiency Simulation
Estimated appearance of this color for people with color vision deficiencies (Machado 2009).
Similar Named Colors
Use in CSS
:root {
--color-midnightblue: #191970;
--color-midnightblue-oklch: oklch(28.81% 0.1436 272.76);
}
.text { color: var(--color-midnightblue); }
.background { background-color: var(--color-midnightblue); }
.border { border: 1px solid rgb(25 25 112 / 50%); }
/* Tailwind CSS */
<div class="bg-[#191970] text-[#191970] border-[#191970]">