#21042E#21042E

#21042E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.083 H 313.1°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#21042E
RGBrgb(33, 4, 46)
HSLhsl(281, 84%, 10%)
HSVhsv(281, 91%, 18%)
CMYKcmyk(28.3%, 91.3%, 0%, 82%)
CIE-LABlab(5.49, 22.62, -20.84)
CIE-LCHlch(5.49, 30.76, 317.35°)
OKLaboklab(19.33% 0.0567 -0.0605)
OKLCHoklch(19.33% 0.083 313.1)
XYZxyz(1.1637, 0.6075, 2.6402)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21042E #112E04
analogous
#0C042E #21042E #2E0426
triadic
#21042E #2E2104 #042E21
tetradic
#21042E #2E0C04 #112E04 #04262E
square
#21042E #2E0C04 #112E04 #04262E
split-complementary
#21042E #262E04 #042E0C
monochromatic
#14021C #14021C #21042E #490966 #720E9F

Accessibility & contrast

On white

18.73
#21042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21042E
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21042E#FFFFFF#000000##FFFFFF
##21042E1.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#01132D
Tritanopia (blue-blind)
#200D18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21042e;
/* rgb */ color: rgb(33, 4, 46);
/* oklch */ color: oklch(19.3% 0.083 313.1);
Tailwind
colors: {
  custom: {
    50: '#5e4867',
    500: '#21042e',
    950: '#000000',
  },
}
SCSS
$custom: #21042e;
$custom-light: #5e4867;
$custom-dark: #000000;
JSON
{
  "hex": "#21042e",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 281.429,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19326,
    "c": 0.08294,
    "h": 313.1
  },
  "luminance": 0.00607
}

Semantic roles & 50–950 ramp

primary
#21042E
secondary
#37711D
accent
#FA2E6D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21042E

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

Preview Lab → · Contrast checker → · Palette generator →

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