#20172F#20172F

#20172F is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.8% C 0.047 H 300.0°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#20172F
RGBrgb(32, 23, 47)
HSLhsl(263, 34%, 14%)
HSVhsv(263, 51%, 18%)
CMYKcmyk(31.9%, 51.1%, 0%, 81.6%)
CIE-LABlab(9.99, 10.96, -14.44)
CIE-LCHlch(9.99, 18.13, 307.21°)
OKLaboklab(22.85% 0.0233 -0.0403)
OKLCHoklch(22.85% 0.047 300)
XYZxyz(1.4150, 1.1251, 2.8314)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20172F #262F17
analogous
#171A2F #20172F #2C172F
triadic
#20172F #2F2017 #172F20
tetradic
#20172F #2F171A #262F17 #172F2C
square
#20172F #2F171A #262F17 #172F2C
split-complementary
#20172F #2F2C17 #1A2F17
monochromatic
#0E0A15 #0E0A15 #20172F #3C2B58 #583F81

Accessibility & contrast

On white

17.14
#20172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20172F
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20172F#FFFFFF#000000##FFFFFF
##20172F1.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111B30
Deuteranopia (green-blind)
#121B2E
Tritanopia (blue-blind)
#1D1B20
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20172f;
/* rgb */ color: rgb(32, 23, 47);
/* oklch */ color: oklch(22.8% 0.047 300.0);
Tailwind
colors: {
  custom: {
    50: '#5c5467',
    500: '#20172f',
    950: '#000000',
  },
}
SCSS
$custom: #20172f;
$custom-light: #5c5467;
$custom-dark: #000000;
JSON
{
  "hex": "#20172f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 262.5,
    "s": 34.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22848,
    "c": 0.04658,
    "h": 300
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#20172F
secondary
#56643D
accent
#CA5DA2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20172F

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

Preview Lab → · Contrast checker → · Palette generator →

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