#21062F#21062F

#21062F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.080 H 311.5°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#21062F
RGBrgb(33, 6, 47)
HSLhsl(280, 77%, 10%)
HSVhsv(280, 87%, 18%)
CMYKcmyk(29.8%, 87.2%, 0%, 81.6%)
CIE-LABlab(5.95, 21.98, -20.85)
CIE-LCHlch(5.95, 30.30, 316.51°)
OKLaboklab(19.77% 0.0531 -0.06)
OKLCHoklch(19.77% 0.08 311.5)
XYZxyz(1.2053, 0.6588, 2.7524)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21062F #142F06
analogous
#0C062F #21062F #2F0628
triadic
#21062F #2F2106 #062F21
tetradic
#21062F #2F0C06 #142F06 #06282F
square
#21062F #2F0C06 #142F06 #06282F
split-complementary
#21062F #282F06 #062F0C
monochromatic
#13031B #13031B #21062F #470D65 #6D149C

Accessibility & contrast

On white

18.55
#21062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21062F
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21062F#FFFFFF#000000##FFFFFF
##21062F1.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#02142E
Tritanopia (blue-blind)
#1F0F19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21062f;
/* rgb */ color: rgb(33, 6, 47);
/* oklch */ color: oklch(19.8% 0.080 311.5);
Tailwind
colors: {
  custom: {
    50: '#5e4968',
    500: '#21062f',
    950: '#000000',
  },
}
SCSS
$custom: #21062f;
$custom-light: #5e4968;
$custom-dark: #000000;
JSON
{
  "hex": "#21062f",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 279.512,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19765,
    "c": 0.0801,
    "h": 311.5
  },
  "luminance": 0.00659
}

Semantic roles & 50–950 ramp

primary
#21062F
secondary
#3C7021
accent
#F43475
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21062F

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

Preview Lab → · Contrast checker → · Palette generator →

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