#20173D#20173D

#20173D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 23.9% C 0.070 H 291.1°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#20173D
RGBrgb(32, 23, 61)
HSLhsl(254, 45%, 16%)
HSVhsv(254, 62%, 24%)
CMYKcmyk(47.5%, 62.3%, 0%, 76.1%)
CIE-LABlab(10.97, 15.63, -22.98)
CIE-LCHlch(10.97, 27.79, 304.23°)
OKLaboklab(23.9% 0.0252 -0.0653)
OKLCHoklch(23.9% 0.07 291.1)
XYZxyz(1.7441, 1.2567, 4.5647)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20173D #343D17
analogous
#17213D #20173D #33173D
triadic
#20173D #3D2017 #173D20
tetradic
#20173D #3D1721 #343D17 #173D33
square
#20173D #3D1721 #343D17 #173D33
split-complementary
#20173D #3D3317 #213D17
monochromatic
#0C0816 #0C0816 #20173D #372869 #4F3996

Accessibility & contrast

On white

16.78
#20173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20173D
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20173D#FFFFFF#000000##FFFFFF
##20173D1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051E3E
Deuteranopia (green-blind)
#071D3C
Tritanopia (blue-blind)
#181F27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20173d;
/* rgb */ color: rgb(32, 23, 61);
/* oklch */ color: oklch(23.9% 0.070 291.1);
Tailwind
colors: {
  custom: {
    50: '#5e5473',
    500: '#20173d',
    950: '#000000',
  },
}
SCSS
$custom: #20173d;
$custom-light: #5e5473;
$custom-dark: #000000;
JSON
{
  "hex": "#20173d",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 254.211,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23895,
    "c": 0.06998,
    "h": 291.1
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#20173D
secondary
#67743C
accent
#D553B6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #20173D

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

Preview Lab → · Contrast checker → · Palette generator →

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