#21042D#21042D

#21042D is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.082 H 314.1°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#21042D
RGBrgb(33, 4, 45)
HSLhsl(282, 84%, 10%)
HSVhsv(282, 91%, 18%)
CMYKcmyk(26.7%, 91.1%, 0%, 82.4%)
CIE-LABlab(5.42, 22.28, -20.20)
CIE-LCHlch(5.42, 30.07, 317.80°)
OKLaboklab(19.23% 0.057 -0.0587)
OKLCHoklch(19.23% 0.082 314.1)
XYZxyz(1.1442, 0.5997, 2.5376)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21042D #102D04
analogous
#0D042D #21042D #2D0425
triadic
#21042D #2D2104 #042D21
tetradic
#21042D #2D0D04 #102D04 #04252D
square
#21042D #2D0D04 #102D04 #04252D
split-complementary
#21042D #252D04 #042D0D
monochromatic
#15021C #15021C #21042D #4A0965 #730E9D

Accessibility & contrast

On white

18.75
#21042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#21042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21042D
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21042D#FFFFFF#000000##FFFFFF
##21042D1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#02132C
Tritanopia (blue-blind)
#200C18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21042d;
/* rgb */ color: rgb(33, 4, 45);
/* oklch */ color: oklch(19.2% 0.082 314.1);
Tailwind
colors: {
  custom: {
    50: '#5e4866',
    500: '#21042d',
    950: '#000000',
  },
}
SCSS
$custom: #21042d;
$custom-light: #5e4866;
$custom-dark: #000000;
JSON
{
  "hex": "#21042d",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 282.439,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19234,
    "c": 0.08182,
    "h": 314.1
  },
  "luminance": 0.006
}

Semantic roles & 50–950 ramp

primary
#21042D
secondary
#35701D
accent
#FA2E6A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21042D

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

Preview Lab → · Contrast checker → · Palette generator →

#21042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva