#20173B#20173B

#20173B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.067 H 292.1°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#20173B
RGBrgb(32, 23, 59)
HSLhsl(255, 44%, 16%)
HSVhsv(255, 61%, 23%)
CMYKcmyk(45.8%, 61%, 0%, 76.9%)
CIE-LABlab(10.82, 14.94, -21.80)
CIE-LCHlch(10.82, 26.43, 304.43°)
OKLaboklab(23.73% 0.0251 -0.0618)
OKLCHoklch(23.73% 0.067 292.1)
XYZxyz(1.6913, 1.2356, 4.2862)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20173B #323B17
analogous
#17203B #20173B #32173B
triadic
#20173B #3B2017 #173B20
tetradic
#20173B #3B1720 #323B17 #173B32
square
#20173B #3B1720 #323B17 #173B32
split-complementary
#20173B #3B3217 #203B17
monochromatic
#0C0916 #0C0916 #20173B #382867 #503993

Accessibility & contrast

On white

16.84
#20173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#20173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20173B
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20173B#FFFFFF#000000##FFFFFF
##20173B1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071E3C
Deuteranopia (green-blind)
#091C3A
Tritanopia (blue-blind)
#191E26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20173b;
/* rgb */ color: rgb(32, 23, 59);
/* oklch */ color: oklch(23.7% 0.067 292.1);
Tailwind
colors: {
  custom: {
    50: '#5d5471',
    500: '#20173b',
    950: '#000000',
  },
}
SCSS
$custom: #20173b;
$custom-light: #5d5471;
$custom-dark: #000000;
JSON
{
  "hex": "#20173b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 255,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23733,
    "c": 0.06671,
    "h": 292.1
  },
  "luminance": 0.01236
}

Semantic roles & 50–950 ramp

primary
#20173B
secondary
#64723C
accent
#D454B4
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #20173B

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

Preview Lab → · Contrast checker → · Palette generator →

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