#21062B#21062B

#21062B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.4% C 0.075 H 315.5°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#21062B
RGBrgb(33, 6, 43)
HSLhsl(284, 76%, 10%)
HSVhsv(284, 86%, 17%)
CMYKcmyk(23.3%, 86%, 0%, 83.1%)
CIE-LABlab(5.67, 20.64, -18.29)
CIE-LCHlch(5.67, 27.58, 318.45°)
OKLaboklab(19.41% 0.0537 -0.0528)
OKLCHoklch(19.41% 0.075 315.5)
XYZxyz(1.1283, 0.6280, 2.3468)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21062B #102B06
analogous
#0F062B #21062B #2B0623
triadic
#21062B #2B2106 #062B21
tetradic
#21062B #2B0F06 #102B06 #06232B
square
#21062B #2B0F06 #102B06 #06232B
split-complementary
#21062B #232B06 #062B0F
monochromatic
#15041B #15041B #21062B #4A0D61 #731596

Accessibility & contrast

On white

18.66
#21062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21062B
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21062B#FFFFFF#000000##FFFFFF
##21062B1.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#05132A
Tritanopia (blue-blind)
#200D17
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21062b;
/* rgb */ color: rgb(33, 6, 43);
/* oklch */ color: oklch(19.4% 0.075 315.5);
Tailwind
colors: {
  custom: {
    50: '#5d4964',
    500: '#21062b',
    950: '#000000',
  },
}
SCSS
$custom: #21062b;
$custom-light: #5d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#21062b",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 283.784,
    "s": 75.51,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19411,
    "c": 0.07532,
    "h": 315.5
  },
  "luminance": 0.00628
}

Semantic roles & 50–950 ramp

primary
#21062B
secondary
#356C21
accent
#F23669
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21062B

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

Preview Lab → · Contrast checker → · Palette generator →

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