#21052F#21052F

#21052F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.6% C 0.082 H 311.8°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#21052F
RGBrgb(33, 5, 47)
HSLhsl(280, 81%, 10%)
HSVhsv(280, 89%, 18%)
CMYKcmyk(29.8%, 89.4%, 0%, 81.6%)
CIE-LABlab(5.75, 22.48, -21.16)
CIE-LCHlch(5.75, 30.87, 316.73°)
OKLaboklab(19.59% 0.0547 -0.0611)
OKLCHoklch(19.59% 0.082 311.8)
XYZxyz(1.1945, 0.6371, 2.7488)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21052F #132F05
analogous
#0C052F #21052F #2F0528
triadic
#21052F #2F2105 #052F21
tetradic
#21052F #2F0C05 #132F05 #05282F
square
#21052F #2F0C05 #132F05 #05282F
split-complementary
#21052F #282F05 #052F0C
monochromatic
#13031C #13031C #21052F #480B66 #6F119E

Accessibility & contrast

On white

18.63
#21052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#21052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21052F
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21052F#FFFFFF#000000##FFFFFF
##21052F1.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#1F0E19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21052f;
/* rgb */ color: rgb(33, 5, 47);
/* oklch */ color: oklch(19.6% 0.082 311.8);
Tailwind
colors: {
  custom: {
    50: '#5e4868',
    500: '#21052f',
    950: '#000000',
  },
}
SCSS
$custom: #21052f;
$custom-light: #5e4868;
$custom-dark: #000000;
JSON
{
  "hex": "#21052f",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 280,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19594,
    "c": 0.08205,
    "h": 311.8
  },
  "luminance": 0.00637
}

Semantic roles & 50–950 ramp

primary
#21052F
secondary
#3A711F
accent
#F73173
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21052F

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

Preview Lab → · Contrast checker → · Palette generator →

#21052F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva