#21082C#21082C

#21082C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.8% C 0.073 H 313.8°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#21082C
RGBrgb(33, 8, 44)
HSLhsl(282, 69%, 10%)
HSVhsv(282, 82%, 17%)
CMYKcmyk(25%, 81.8%, 0%, 82.7%)
CIE-LABlab(6.13, 20.00, -18.32)
CIE-LCHlch(6.13, 27.12, 317.52°)
OKLaboklab(19.84% 0.0502 -0.0524)
OKLCHoklch(19.84% 0.073 313.8)
XYZxyz(1.1686, 0.6789, 2.4519)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21082C #132C08
analogous
#0F082C #21082C #2C0825
triadic
#21082C #2C2108 #082C21
tetradic
#21082C #2C0F08 #132C08 #08252C
square
#21082C #2C0F08 #132C08 #08252C
split-complementary
#21082C #252C08 #082C0F
monochromatic
#13051A #13051A #21082C #481160 #6F1B94

Accessibility & contrast

On white

18.49
#21082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#21082C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21082C
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21082C#FFFFFF#000000##FFFFFF
##21082C1.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#06142B
Tritanopia (blue-blind)
#200F18
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #21082c;
/* rgb */ color: rgb(33, 8, 44);
/* oklch */ color: oklch(19.8% 0.073 313.8);
Tailwind
colors: {
  custom: {
    50: '#5d4a65',
    500: '#21082c',
    950: '#000000',
  },
}
SCSS
$custom: #21082c;
$custom-light: #5d4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#21082c",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 281.667,
    "s": 69.231,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1984,
    "c": 0.07255,
    "h": 313.8
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#21082C
secondary
#3A6B25
accent
#EC3C72
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21082C

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

Preview Lab → · Contrast checker → · Palette generator →

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