#21042F#21042F

#21042F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.4% C 0.084 H 312.2°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#21042F
RGBrgb(33, 4, 47)
HSLhsl(280, 84%, 10%)
HSVhsv(280, 91%, 18%)
CMYKcmyk(29.8%, 91.5%, 0%, 81.6%)
CIE-LABlab(5.56, 22.97, -21.48)
CIE-LCHlch(5.56, 31.44, 316.92°)
OKLaboklab(19.42% 0.0565 -0.0623)
OKLCHoklch(19.42% 0.084 312.2)
XYZxyz(1.1836, 0.6154, 2.7452)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21042F #122F04
analogous
#0B042F #21042F #2F0428
triadic
#21042F #2F2104 #042F21
tetradic
#21042F #2F0B04 #122F04 #04282F
square
#21042F #2F0B04 #122F04 #04282F
split-complementary
#21042F #282F04 #042F0B
monochromatic
#14021C #14021C #21042F #490967 #700EA0

Accessibility & contrast

On white

18.70
#21042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21042F
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21042F#FFFFFF#000000##FFFFFF
##21042F1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00132E
Tritanopia (blue-blind)
#1F0D19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21042f;
/* rgb */ color: rgb(33, 4, 47);
/* oklch */ color: oklch(19.4% 0.084 312.2);
Tailwind
colors: {
  custom: {
    50: '#5e4868',
    500: '#21042f',
    950: '#000000',
  },
}
SCSS
$custom: #21042f;
$custom-light: #5e4868;
$custom-dark: #000000;
JSON
{
  "hex": "#21042f",
  "rgb": {
    "r": 33,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 280.465,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.1942,
    "c": 0.08407,
    "h": 312.2
  },
  "luminance": 0.00615
}

Semantic roles & 50–950 ramp

primary
#21042F
secondary
#39721D
accent
#FB2D70
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21042F

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

Preview Lab → · Contrast checker → · Palette generator →

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