#21082B#21082B

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

Color values

HEX#21082B
RGBrgb(33, 8, 43)
HSLhsl(283, 69%, 10%)
HSVhsv(283, 81%, 17%)
CMYKcmyk(23.3%, 81.4%, 0%, 83.1%)
CIE-LABlab(6.07, 19.68, -17.67)
CIE-LCHlch(6.07, 26.45, 318.07°)
OKLaboklab(19.76% 0.0503 -0.0506)
OKLCHoklch(19.76% 0.071 314.8)
XYZxyz(1.1500, 0.6715, 2.3541)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21082B #122B08
analogous
#0F082B #21082B #2B0824
triadic
#21082B #2B2108 #082B21
tetradic
#21082B #2B0F08 #122B08 #08242B
square
#21082B #2B0F08 #122B08 #08242B
split-complementary
#21082B #242B08 #082B0F
monochromatic
#14051A #14051A #21082B #49125F #701B92

Accessibility & contrast

On white

18.52
#21082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21082B
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21082B#FFFFFF#000000##FFFFFF
##21082B1.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#07142A
Tritanopia (blue-blind)
#200F18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21082b;
/* rgb */ color: rgb(33, 8, 43);
/* oklch */ color: oklch(19.8% 0.071 314.8);
Tailwind
colors: {
  custom: {
    50: '#5d4a64',
    500: '#21082b',
    950: '#000000',
  },
}
SCSS
$custom: #21082b;
$custom-light: #5d4a64;
$custom-dark: #000000;
JSON
{
  "hex": "#21082b",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 282.857,
    "s": 68.627,
    "l": 10
  },
  "oklch": {
    "l": 0.19756,
    "c": 0.07129,
    "h": 314.8
  },
  "luminance": 0.00671
}

Semantic roles & 50–950 ramp

primary
#21082B
secondary
#396A25
accent
#EB3C6E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21082B

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

Preview Lab → · Contrast checker → · Palette generator →

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