#21002B#21002B

#21002B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.3% C 0.089 H 317.4°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#21002B
RGBrgb(33, 0, 43)
HSLhsl(286, 100%, 8%)
HSVhsv(286, 100%, 17%)
CMYKcmyk(23.3%, 100%, 0%, 83.1%)
CIE-LABlab(4.50, 23.48, -20.15)
CIE-LCHlch(4.50, 30.94, 319.36°)
OKLaboklab(18.29% 0.0655 -0.0603)
OKLCHoklch(18.29% 0.089 317.4)
XYZxyz(1.0632, 0.4978, 2.3251)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21002B #0A2B00
analogous
#0B002B #21002B #2B001F
triadic
#21002B #2B2100 #002B21
tetradic
#21002B #2B0B00 #0A2B00 #001F2B
square
#21002B #2B0B00 #0A2B00 #001F2B
split-complementary
#21002B #1F2B00 #002B0B
monochromatic
#17001F #17001F #21002B #500068 #7F00A5

Accessibility & contrast

On white

19.10
#21002B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#21002B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21002B
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21002B#FFFFFF#000000##FFFFFF
##21002B1.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#00112A
Tritanopia (blue-blind)
#200815
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #21002b;
/* rgb */ color: rgb(33, 0, 43);
/* oklch */ color: oklch(18.3% 0.089 317.4);
Tailwind
colors: {
  custom: {
    50: '#5d4664',
    500: '#21002b',
    950: '#000000',
  },
}
SCSS
$custom: #21002b;
$custom-light: #5d4664;
$custom-dark: #000000;
JSON
{
  "hex": "#21002b",
  "rgb": {
    "r": 33,
    "g": 0,
    "b": 43
  },
  "hsl": {
    "h": 286.047,
    "s": 100,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18291,
    "c": 0.08899,
    "h": 317.4
  },
  "luminance": 0.00498
}

Semantic roles & 50–950 ramp

primary
#21002B
secondary
#2A7314
accent
#FF295B
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21002B

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

Preview Lab → · Contrast checker → · Palette generator →

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