#21052B#21052B

#21052B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.077 H 315.8°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#21052B
RGBrgb(33, 5, 43)
HSLhsl(284, 79%, 9%)
HSVhsv(284, 88%, 17%)
CMYKcmyk(23.3%, 88.4%, 0%, 83.1%)
CIE-LABlab(5.48, 21.12, -18.60)
CIE-LCHlch(5.48, 28.14, 318.63°)
OKLaboklab(19.23% 0.0555 -0.054)
OKLCHoklch(19.23% 0.077 315.8)
XYZxyz(1.1174, 0.6063, 2.3432)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21052B #0F2B05
analogous
#0E052B #21052B #2B0522
triadic
#21052B #2B2105 #052B21
tetradic
#21052B #2B0E05 #0F2B05 #05222B
square
#21052B #2B0E05 #0F2B05 #05222B
split-complementary
#21052B #222B05 #052B0E
monochromatic
#15031B #15031B #21052B #4B0B62 #751299

Accessibility & contrast

On white

18.73
#21052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#21052B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21052B
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21052B#FFFFFF#000000##FFFFFF
##21052B1.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#05132A
Tritanopia (blue-blind)
#200C17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21052b;
/* rgb */ color: rgb(33, 5, 43);
/* oklch */ color: oklch(19.2% 0.077 315.8);
Tailwind
colors: {
  custom: {
    50: '#5d4864',
    500: '#21052b',
    950: '#000000',
  },
}
SCSS
$custom: #21052b;
$custom-light: #5d4864;
$custom-dark: #000000;
JSON
{
  "hex": "#21052b",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 284.211,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19233,
    "c": 0.07742,
    "h": 315.8
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#21052B
secondary
#346D1F
accent
#F63266
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21052B

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

Preview Lab → · Contrast checker → · Palette generator →

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