#15212E

A color in the Blue, Sky, Navy family

#15212e is a color in the Blue, Sky, Navy family: RGB(21, 33, 46), HSL(211°, 37%, 13%), CMYK(54%, 28%, 0%, 82%). Closest named color: midnightblue. Contrast is 16.29:1 on white and 1.29:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#15212e
RGBrgb(21 33 46)
RGB (legacy)rgb(21, 33, 46)
RGB %rgb(8% 13% 18%)
HSLhsl(211 37% 13%)
HSV / HSBhsv(211, 54%, 18%)
HWBhwb(211 8% 82%)
CMYKcmyk(54%, 28%, 0%, 82%)
CIELAB (D50)lab(12.11 -2.04 -10.45)
LCHlch(12.11 10.65 258.93)
OKLaboklab(0.2431 -0.0098 -0.0286)
OKLCHoklch(0.2431 0.0302 251.08)
Decimal1384750

Properties

Color ToneBlue, Sky, Navy
Closest named colormidnightblue ΔE 12.5
Closest web-safe color#003333
Hue211°
Saturation (HSL / HSV)37% / 54%
Lightness (HSL)13%
Brightness or Value (HSV)18%
Luminance (Rec.601 / Rec.709)12% / 12%
Relative luminance (WCAG)0.0144
Red / Green / Blue21 / 33 / 46

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.29:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.29: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 103.2 / 0 · As background with white / black text: Lc -105.7 / 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

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-brand: #15212e;
  --color-brand-oklch: oklch(24.31% 0.0302 251.08);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(21 33 46 / 50%); }
/* Tailwind CSS */
<div class="bg-[#15212e] text-[#15212e] border-[#15212e]">