#21042C#21042C

#21042C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.081 H 315.1°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#21042C
RGBrgb(33, 4, 44)
HSLhsl(284, 83%, 9%)
HSVhsv(284, 91%, 17%)
CMYKcmyk(25%, 90.9%, 0%, 82.7%)
CIE-LABlab(5.35, 21.94, -19.56)
CIE-LCHlch(5.35, 29.39, 318.28°)
OKLaboklab(19.14% 0.0572 -0.057)
OKLCHoklch(19.14% 0.081 315.1)
XYZxyz(1.1252, 0.5921, 2.4374)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21042C #0F2C04
analogous
#0D042C #21042C #2C0423
triadic
#21042C #2C2104 #042C21
tetradic
#21042C #2C0D04 #0F2C04 #04232C
square
#21042C #2C0D04 #0F2C04 #04232C
split-complementary
#21042C #232C04 #042C0D
monochromatic
#15031C #15031C #21042C #4B0964 #750E9C

Accessibility & contrast

On white

18.78
#21042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21042C
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21042C#FFFFFF#000000##FFFFFF
##21042C1.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#03122B
Tritanopia (blue-blind)
#200C17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21042c;
/* rgb */ color: rgb(33, 4, 44);
/* oklch */ color: oklch(19.1% 0.081 315.1);
Tailwind
colors: {
  custom: {
    50: '#5e4865',
    500: '#21042c',
    950: '#000000',
  },
}
SCSS
$custom: #21042c;
$custom-light: #5e4865;
$custom-dark: #000000;
JSON
{
  "hex": "#21042c",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 283.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19142,
    "c": 0.0807,
    "h": 315.1
  },
  "luminance": 0.00592
}

Semantic roles & 50–950 ramp

primary
#21042C
secondary
#346F1D
accent
#FA2E66
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21042C

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

Preview Lab → · Contrast checker → · Palette generator →

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