#20171F#20171F

#20171F is a very dark, muted purple. Relative luminance 0.010; OKLCH L 21.9% C 0.021 H 330.0°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#20171F
RGBrgb(32, 23, 31)
HSLhsl(307, 16%, 11%)
HSVhsv(307, 28%, 13%)
CMYKcmyk(0%, 28.1%, 3.1%, 87.5%)
CIE-LABlab(9.15, 6.37, -3.85)
CIE-LCHlch(9.15, 7.45, 328.84°)
OKLaboklab(21.93% 0.0178 -0.0103)
OKLCHoklch(21.93% 0.021 330)
XYZxyz(1.1494, 1.0188, 1.4322)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20171F #172018
analogous
#1C1720 #20171F #20171A
triadic
#20171F #1F2017 #171F20
tetradic
#20171F #201C17 #172018 #171A20
square
#20171F #201C17 #172018 #171A20
split-complementary
#20171F #1A2017 #17201C
monochromatic
#120D11 #120D11 #20171F #443141 #674A64

Accessibility & contrast

On white

17.44
#20171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20171F
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20171F#FFFFFF#000000##FFFFFF
##20171F1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17191F
Deuteranopia (green-blind)
#191A1F
Tritanopia (blue-blind)
#21181A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #20171f;
/* rgb */ color: rgb(32, 23, 31);
/* oklch */ color: oklch(21.9% 0.021 330.0);
Tailwind
colors: {
  custom: {
    50: '#5b535a',
    500: '#20171f',
    950: '#000000',
  },
}
SCSS
$custom: #20171f;
$custom-light: #5b535a;
$custom-dark: #000000;
JSON
{
  "hex": "#20171f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 306.667,
    "s": 16.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21925,
    "c": 0.02059,
    "h": 330
  },
  "luminance": 0.01019
}

Semantic roles & 50–950 ramp

primary
#20171F
secondary
#415243
accent
#B9776F
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040203
muted
#797878

Preview Lab

Preview with #20171F

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

Preview Lab → · Contrast checker → · Palette generator →

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