#21173D#21173D

#21173D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.0% C 0.070 H 292.5°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#21173D
RGBrgb(33, 23, 61)
HSLhsl(256, 45%, 16%)
HSVhsv(256, 62%, 24%)
CMYKcmyk(45.9%, 62.3%, 0%, 76.1%)
CIE-LABlab(11.09, 15.93, -22.79)
CIE-LCHlch(11.09, 27.80, 304.95°)
OKLaboklab(24.01% 0.0267 -0.0647)
OKLCHoklch(24.01% 0.07 292.5)
XYZxyz(1.7757, 1.2730, 4.5661)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21173D #333D17
analogous
#17203D #21173D #34173D
triadic
#21173D #3D2117 #173D21
tetradic
#21173D #3D1720 #333D17 #173D34
square
#21173D #3D1720 #333D17 #173D34
split-complementary
#21173D #3D3417 #203D17
monochromatic
#0C0816 #0C0816 #21173D #392869 #513996

Accessibility & contrast

On white

16.74
#21173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#21173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21173D
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21173D#FFFFFF#000000##FFFFFF
##21173D1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061E3E
Deuteranopia (green-blind)
#081D3C
Tritanopia (blue-blind)
#1A1F27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #21173d;
/* rgb */ color: rgb(33, 23, 61);
/* oklch */ color: oklch(24.0% 0.070 292.5);
Tailwind
colors: {
  custom: {
    50: '#5e5473',
    500: '#21173d',
    950: '#000000',
  },
}
SCSS
$custom: #21173d;
$custom-light: #5e5473;
$custom-dark: #000000;
JSON
{
  "hex": "#21173d",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 255.789,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24009,
    "c": 0.07001,
    "h": 292.5
  },
  "luminance": 0.01273
}

Semantic roles & 50–950 ramp

primary
#21173D
secondary
#65743C
accent
#D553B3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #21173D

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

Preview Lab → · Contrast checker → · Palette generator →

#21173D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva