#20172B#20172B

#20172B is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.6% C 0.040 H 304.1°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#20172B
RGBrgb(32, 23, 43)
HSLhsl(267, 30%, 13%)
HSVhsv(267, 47%, 17%)
CMYKcmyk(25.6%, 46.5%, 0%, 83.1%)
CIE-LABlab(9.75, 9.72, -11.87)
CIE-LCHlch(9.75, 15.35, 309.31°)
OKLaboklab(22.59% 0.0223 -0.0329)
OKLCHoklch(22.59% 0.04 304.1)
XYZxyz(1.3380, 1.0943, 2.4258)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20172B #222B17
analogous
#17182B #20172B #2A172B
triadic
#20172B #2B2017 #172B20
tetradic
#20172B #2B1718 #222B17 #172B2A
square
#20172B #2B1718 #222B17 #172B2A
split-complementary
#20172B #2B2A17 #182B17
monochromatic
#0F0B14 #0F0B14 #20172B #3E2C53 #5B427B

Accessibility & contrast

On white

17.23
#20172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#20172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20172B
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20172B#FFFFFF#000000##FFFFFF
##20172B1.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121B2C
Deuteranopia (green-blind)
#141B2A
Tritanopia (blue-blind)
#1E1A1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20172b;
/* rgb */ color: rgb(32, 23, 43);
/* oklch */ color: oklch(22.6% 0.040 304.1);
Tailwind
colors: {
  custom: {
    50: '#5c5464',
    500: '#20172b',
    950: '#000000',
  },
}
SCSS
$custom: #20172b;
$custom-light: #5c5464;
$custom-dark: #000000;
JSON
{
  "hex": "#20172b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 267,
    "s": 30.303,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22589,
    "c": 0.03975,
    "h": 304.1
  },
  "luminance": 0.01094
}

Semantic roles & 50–950 ramp

primary
#20172B
secondary
#51603E
accent
#C76199
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #20172B

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

Preview Lab → · Contrast checker → · Palette generator →

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