#21002C#21002C

#21002C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.4% C 0.090 H 316.4°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#21002C
RGBrgb(33, 0, 44)
HSLhsl(285, 100%, 9%)
HSVhsv(285, 100%, 17%)
CMYKcmyk(25%, 100%, 0%, 82.7%)
CIE-LABlab(4.56, 23.84, -20.80)
CIE-LCHlch(4.56, 31.63, 318.89°)
OKLaboklab(18.39% 0.0651 -0.062)
OKLCHoklch(18.39% 0.09 316.4)
XYZxyz(1.0818, 0.5052, 2.4229)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21002C #0B2C00
analogous
#0B002C #21002C #2C0021
triadic
#21002C #2C2100 #002C21
tetradic
#21002C #2C0B00 #0B2C00 #00212C
square
#21002C #2C0B00 #0B2C00 #00212C
split-complementary
#21002C #212C00 #002C0B
monochromatic
#17001F #17001F #21002C #4F0069 #7D00A6

Accessibility & contrast

On white

19.07
#21002C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21002C
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21002C#FFFFFF#000000##FFFFFF
##21002C1.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21002c;
/* rgb */ color: rgb(33, 0, 44);
/* oklch */ color: oklch(18.4% 0.090 316.4);
Tailwind
colors: {
  custom: {
    50: '#5e4665',
    500: '#21002c',
    950: '#000000',
  },
}
SCSS
$custom: #21002c;
$custom-light: #5e4665;
$custom-dark: #000000;
JSON
{
  "hex": "#21002c",
  "rgb": {
    "r": 33,
    "g": 0,
    "b": 44
  },
  "hsl": {
    "h": 285,
    "s": 100,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18389,
    "c": 0.08993,
    "h": 316.4
  },
  "luminance": 0.00505
}

Semantic roles & 50–950 ramp

primary
#21002C
secondary
#2C7314
accent
#FF295E
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21002C

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

Preview Lab → · Contrast checker → · Palette generator →

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