#21042B#21042B

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

Color values

HEX#21042B
RGBrgb(33, 4, 43)
HSLhsl(285, 83%, 9%)
HSVhsv(285, 91%, 17%)
CMYKcmyk(23.3%, 90.7%, 0%, 83.1%)
CIE-LABlab(5.28, 21.60, -18.91)
CIE-LCHlch(5.28, 28.71, 318.79°)
OKLaboklab(19.05% 0.0574 -0.0552)
OKLCHoklch(19.05% 0.08 316.1)
XYZxyz(1.1066, 0.5846, 2.3396)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21042B #0E2B04
analogous
#0E042B #21042B #2B0422
triadic
#21042B #2B2104 #042B21
tetradic
#21042B #2B0E04 #0E2B04 #04222B
square
#21042B #2B0E04 #0E2B04 #04222B
split-complementary
#21042B #222B04 #042B0E
monochromatic
#15031C #15031C #21042B #4C0963 #770E9B

Accessibility & contrast

On white

18.80
#21042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21042B
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21042B#FFFFFF#000000##FFFFFF
##21042B1.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#04122A
Tritanopia (blue-blind)
#200B16
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21042b;
/* rgb */ color: rgb(33, 4, 43);
/* oklch */ color: oklch(19.1% 0.080 316.1);
Tailwind
colors: {
  custom: {
    50: '#5d4864',
    500: '#21042b',
    950: '#000000',
  },
}
SCSS
$custom: #21042b;
$custom-light: #5d4864;
$custom-dark: #000000;
JSON
{
  "hex": "#21042b",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 284.615,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19052,
    "c": 0.07959,
    "h": 316.1
  },
  "luminance": 0.00585
}

Semantic roles & 50–950 ramp

primary
#21042B
secondary
#326E1D
accent
#F92E62
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21042B

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

Preview Lab → · Contrast checker → · Palette generator →

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