#21062A#21062A

#21062A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.074 H 316.5°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#21062A
RGBrgb(33, 6, 42)
HSLhsl(285, 75%, 9%)
HSVhsv(285, 86%, 16%)
CMYKcmyk(21.4%, 85.7%, 0%, 83.5%)
CIE-LABlab(5.61, 20.31, -17.64)
CIE-LCHlch(5.61, 26.90, 319.02°)
OKLaboklab(19.33% 0.0538 -0.051)
OKLCHoklch(19.33% 0.074 316.5)
XYZxyz(1.1102, 0.6208, 2.2514)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21062A #0F2A06
analogous
#0F062A #21062A #2A0621
triadic
#21062A #2A2106 #062A21
tetradic
#21062A #2A0F06 #0F2A06 #06212A
square
#21062A #2A0F06 #0F2A06 #06212A
split-complementary
#21062A #212A06 #062A0F
monochromatic
#15041B #15041B #21062A #4B0E60 #751595

Accessibility & contrast

On white

18.68
#21062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#21062A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21062A
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21062A#FFFFFF#000000##FFFFFF
##21062A1.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#061329
Tritanopia (blue-blind)
#200D17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21062a;
/* rgb */ color: rgb(33, 6, 42);
/* oklch */ color: oklch(19.3% 0.074 316.5);
Tailwind
colors: {
  custom: {
    50: '#5d4963',
    500: '#21062a',
    950: '#000000',
  },
}
SCSS
$custom: #21062a;
$custom-light: #5d4963;
$custom-dark: #000000;
JSON
{
  "hex": "#21062a",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 285,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19325,
    "c": 0.07414,
    "h": 316.5
  },
  "luminance": 0.00621
}

Semantic roles & 50–950 ramp

primary
#21062A
secondary
#346B21
accent
#F23665
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040105
muted
#797779

Preview Lab

Preview with #21062A

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

Preview Lab → · Contrast checker → · Palette generator →

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