#21062E#21062E

#21062E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.7% C 0.079 H 312.5°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#21062E
RGBrgb(33, 6, 46)
HSLhsl(281, 77%, 10%)
HSVhsv(281, 87%, 18%)
CMYKcmyk(28.3%, 87%, 0%, 82%)
CIE-LABlab(5.88, 21.64, -20.22)
CIE-LCHlch(5.88, 29.62, 316.95°)
OKLaboklab(19.67% 0.0533 -0.0582)
OKLCHoklch(19.67% 0.079 312.5)
XYZxyz(1.1854, 0.6509, 2.6474)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21062E #132E06
analogous
#0D062E #21062E #2E0627
triadic
#21062E #2E2106 #062E21
tetradic
#21062E #2E0D06 #132E06 #06272E
square
#21062E #2E0D06 #132E06 #06272E
split-complementary
#21062E #272E06 #062E0D
monochromatic
#13041B #13041B #21062E #480D64 #6F149A

Accessibility & contrast

On white

18.58
#21062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#21062E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21062E
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21062E#FFFFFF#000000##FFFFFF
##21062E1.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#03142D
Tritanopia (blue-blind)
#200E19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21062e;
/* rgb */ color: rgb(33, 6, 46);
/* oklch */ color: oklch(19.7% 0.079 312.5);
Tailwind
colors: {
  custom: {
    50: '#5e4967',
    500: '#21062e',
    950: '#000000',
  },
}
SCSS
$custom: #21062e;
$custom-light: #5e4967;
$custom-dark: #000000;
JSON
{
  "hex": "#21062e",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 280.5,
    "s": 76.923,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19674,
    "c": 0.07889,
    "h": 312.5
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#21062E
secondary
#3A6F21
accent
#F33472
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21062E

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

Preview Lab → · Contrast checker → · Palette generator →

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