#21212E#21212E

#21212E is a dark, muted blue. Relative luminance 0.016; OKLCH L 25.4% C 0.024 H 284.5°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#21212E
RGBrgb(33, 33, 46)
HSLhsl(240, 16%, 15%)
HSVhsv(240, 28%, 18%)
CMYKcmyk(28.3%, 28.3%, 0%, 82%)
CIE-LABlab(13.28, 3.62, -8.60)
CIE-LCHlch(13.28, 9.33, 292.85°)
OKLaboklab(25.38% 0.0061 -0.0236)
OKLCHoklch(25.38% 0.024 284.5)
XYZxyz(1.6641, 1.6083, 2.8070)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21212E #2E2E21
analogous
#21272E #21212E #27212E
triadic
#21212E #2E2121 #212E21
tetradic
#21212E #2E2127 #2E2E21 #212E27
square
#21212E #2E2127 #2E2E21 #212E27
split-complementary
#21212E #2E2721 #272E21
monochromatic
#0D0D12 #0D0D12 #21212E #3B3B52 #545475

Accessibility & contrast

On white

15.89
#21212E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21212E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21212E
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21212E#FFFFFF#000000##FFFFFF
##21212E1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E232F
Deuteranopia (green-blind)
#1D222E
Tritanopia (blue-blind)
#1E2325
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21212e;
/* rgb */ color: rgb(33, 33, 46);
/* oklch */ color: oklch(25.4% 0.024 284.5);
Tailwind
colors: {
  custom: {
    50: '#5c5c66',
    500: '#21212e',
    950: '#000000',
  },
}
SCSS
$custom: #21212e;
$custom-light: #5c5c66;
$custom-dark: #000000;
JSON
{
  "hex": "#21212e",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 46
  },
  "hsl": {
    "h": 240,
    "s": 16.456,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25377,
    "c": 0.0244,
    "h": 284.5
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#21212E
secondary
#5F5F4C
accent
#B96FB9
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#040406
muted
#79797A

Preview Lab

Preview with #21212E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#21212E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva