#20172D#20172D

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

Color values

HEX#20172D
RGBrgb(32, 23, 45)
HSLhsl(265, 32%, 13%)
HSVhsv(265, 49%, 18%)
CMYKcmyk(28.9%, 48.9%, 0%, 82.4%)
CIE-LABlab(9.87, 10.34, -13.16)
CIE-LCHlch(9.87, 16.74, 308.14°)
OKLaboklab(22.72% 0.0228 -0.0366)
OKLCHoklch(22.72% 0.043 301.9)
XYZxyz(1.3756, 1.1093, 2.6238)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20172D #242D17
analogous
#17192D #20172D #2B172D
triadic
#20172D #2D2017 #172D20
tetradic
#20172D #2D1719 #242D17 #172D2B
square
#20172D #2D1719 #242D17 #172D2B
split-complementary
#20172D #2D2B17 #192D17
monochromatic
#0E0A14 #0E0A14 #20172D #3D2C55 #5A407E

Accessibility & contrast

On white

17.19
#20172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20172D
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20172D#FFFFFF#000000##FFFFFF
##20172D1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121B2E
Deuteranopia (green-blind)
#131B2C
Tritanopia (blue-blind)
#1E1B1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20172d;
/* rgb */ color: rgb(32, 23, 45);
/* oklch */ color: oklch(22.7% 0.043 301.9);
Tailwind
colors: {
  custom: {
    50: '#5c5466',
    500: '#20172d',
    950: '#000000',
  },
}
SCSS
$custom: #20172d;
$custom-light: #5c5466;
$custom-dark: #000000;
JSON
{
  "hex": "#20172d",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 264.545,
    "s": 32.353,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22716,
    "c": 0.04317,
    "h": 301.9
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#20172D
secondary
#53623E
accent
#C95F9D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #20172D

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

Preview Lab → · Contrast checker → · Palette generator →

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