#20172A#20172A

#20172A is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.5% C 0.038 H 305.3°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#20172A
RGBrgb(32, 23, 42)
HSLhsl(268, 29%, 13%)
HSVhsv(268, 45%, 16%)
CMYKcmyk(23.8%, 45.2%, 0%, 83.5%)
CIE-LABlab(9.70, 9.42, -11.22)
CIE-LCHlch(9.70, 14.66, 310.01°)
OKLaboklab(22.53% 0.022 -0.031)
OKLCHoklch(22.53% 0.038 305.3)
XYZxyz(1.3199, 1.0870, 2.3303)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20172A #212A17
analogous
#17172A #20172A #29172A
triadic
#20172A #2A2017 #172A20
tetradic
#20172A #2A1717 #212A17 #172A29
square
#20172A #2A1717 #212A17 #172A29
split-complementary
#20172A #2A2917 #172A17
monochromatic
#0F0B14 #0F0B14 #20172A #3E2D52 #5C4279

Accessibility & contrast

On white

17.25
#20172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20172A
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20172A#FFFFFF#000000##FFFFFF
##20172A1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131B2B
Deuteranopia (green-blind)
#151B29
Tritanopia (blue-blind)
#1E1A1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20172a;
/* rgb */ color: rgb(32, 23, 42);
/* oklch */ color: oklch(22.5% 0.038 305.3);
Tailwind
colors: {
  custom: {
    50: '#5b5463',
    500: '#20172a',
    950: '#000000',
  },
}
SCSS
$custom: #20172a;
$custom-light: #5b5463;
$custom-dark: #000000;
JSON
{
  "hex": "#20172a",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 268.421,
    "s": 29.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22527,
    "c": 0.03805,
    "h": 305.3
  },
  "luminance": 0.01087
}

Semantic roles & 50–950 ramp

primary
#20172A
secondary
#4F5E3E
accent
#C56297
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #20172A

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

Preview Lab → · Contrast checker → · Palette generator →

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