#21082A#21082A

#21082A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.7% C 0.070 H 315.9°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#21082A
RGBrgb(33, 8, 42)
HSLhsl(284, 68%, 10%)
HSVhsv(284, 81%, 16%)
CMYKcmyk(21.4%, 81%, 0%, 83.5%)
CIE-LABlab(6.00, 19.35, -17.02)
CIE-LCHlch(6.00, 25.78, 318.67°)
OKLaboklab(19.67% 0.0503 -0.0487)
OKLCHoklch(19.67% 0.07 315.9)
XYZxyz(1.1319, 0.6642, 2.2586)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21082A #112A08
analogous
#10082A #21082A #2A0822
triadic
#21082A #2A2108 #082A21
tetradic
#21082A #2A1008 #112A08 #08222A
square
#21082A #2A1008 #112A08 #08222A
split-complementary
#21082A #222A08 #082A10
monochromatic
#14051A #14051A #21082A #49125D #721C91

Accessibility & contrast

On white

18.54
#21082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#21082A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21082A
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21082A#FFFFFF#000000##FFFFFF
##21082A1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122B
Deuteranopia (green-blind)
#081429
Tritanopia (blue-blind)
#200E17
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21082a;
/* rgb */ color: rgb(33, 8, 42);
/* oklch */ color: oklch(19.7% 0.070 315.9);
Tailwind
colors: {
  custom: {
    50: '#5d4a63',
    500: '#21082a',
    950: '#000000',
  },
}
SCSS
$custom: #21082a;
$custom-light: #5d4a63;
$custom-dark: #000000;
JSON
{
  "hex": "#21082a",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 284.118,
    "s": 68,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19674,
    "c": 0.07005,
    "h": 315.9
  },
  "luminance": 0.00664
}

Semantic roles & 50–950 ramp

primary
#21082A
secondary
#376925
accent
#EB3D6B
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #21082A

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

Preview Lab → · Contrast checker → · Palette generator →

#21082A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva