#20161F#20161F

#20161F is a very dark, muted purple. Relative luminance 0.010; OKLCH L 21.7% C 0.023 H 329.7°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#20161F
RGBrgb(32, 22, 31)
HSLhsl(306, 19%, 11%)
HSVhsv(306, 31%, 13%)
CMYKcmyk(0%, 31.2%, 3.1%, 87.5%)
CIE-LABlab(8.82, 7.12, -4.34)
CIE-LCHlch(8.82, 8.34, 328.62°)
OKLaboklab(21.68% 0.0199 -0.0116)
OKLCHoklch(21.68% 0.023 329.7)
XYZxyz(1.1299, 0.9799, 1.4257)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20161F #162017
analogous
#1C1620 #20161F #20161A
triadic
#20161F #1F2016 #161F20
tetradic
#20161F #201C16 #162017 #161A20
square
#20161F #201C16 #162017 #161A20
split-complementary
#20161F #1A2016 #16201C
monochromatic
#120C12 #120C12 #20161F #442F42 #694865

Accessibility & contrast

On white

17.56
#20161F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#20161F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20161F
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20161F#FFFFFF#000000##FFFFFF
##20161F1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16181F
Deuteranopia (green-blind)
#181A1F
Tritanopia (blue-blind)
#211719
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #20161f;
/* rgb */ color: rgb(32, 22, 31);
/* oklch */ color: oklch(21.7% 0.023 329.7);
Tailwind
colors: {
  custom: {
    50: '#5b535a',
    500: '#20161f',
    950: '#000000',
  },
}
SCSS
$custom: #20161f;
$custom-light: #5b535a;
$custom-dark: #000000;
JSON
{
  "hex": "#20161f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 31
  },
  "hsl": {
    "h": 306,
    "s": 18.519,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21676,
    "c": 0.02307,
    "h": 329.7
  },
  "luminance": 0.0098
}

Semantic roles & 50–950 ramp

primary
#20161F
secondary
#3F5241
accent
#BB746D
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040203
muted
#797878

Preview Lab

Preview with #20161F

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

Preview Lab → · Contrast checker → · Palette generator →

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