#20172C#20172C

#20172C is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.7% C 0.041 H 303.0°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#20172C
RGBrgb(32, 23, 44)
HSLhsl(266, 31%, 13%)
HSVhsv(266, 48%, 17%)
CMYKcmyk(27.3%, 47.7%, 0%, 82.7%)
CIE-LABlab(9.81, 10.03, -12.52)
CIE-LCHlch(9.81, 16.04, 308.69°)
OKLaboklab(22.65% 0.0226 -0.0348)
OKLCHoklch(22.65% 0.041 303)
XYZxyz(1.3566, 1.1017, 2.5236)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20172C #232C17
analogous
#17182C #20172C #2A172C
triadic
#20172C #2C2017 #172C20
tetradic
#20172C #2C1718 #232C17 #172C2A
square
#20172C #2C1718 #232C17 #172C2A
split-complementary
#20172C #2C2A17 #182C17
monochromatic
#0F0B14 #0F0B14 #20172C #3D2C54 #5A417C

Accessibility & contrast

On white

17.21
#20172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20172C
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20172C#FFFFFF#000000##FFFFFF
##20172C1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121B2D
Deuteranopia (green-blind)
#141B2B
Tritanopia (blue-blind)
#1E1A1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20172c;
/* rgb */ color: rgb(32, 23, 44);
/* oklch */ color: oklch(22.7% 0.041 303.0);
Tailwind
colors: {
  custom: {
    50: '#5c5465',
    500: '#20172c',
    950: '#000000',
  },
}
SCSS
$custom: #20172c;
$custom-light: #5c5465;
$custom-dark: #000000;
JSON
{
  "hex": "#20172c",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 265.714,
    "s": 31.343,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22652,
    "c": 0.04146,
    "h": 303
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#20172C
secondary
#52613E
accent
#C8609B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #20172C

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

Preview Lab → · Contrast checker → · Palette generator →

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