#20173F#20173F

#20173F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.1% C 0.073 H 290.2°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#20173F
RGBrgb(32, 23, 63)
HSLhsl(254, 47%, 17%)
HSVhsv(254, 63%, 25%)
CMYKcmyk(49.2%, 63.5%, 0%, 75.3%)
CIE-LABlab(11.13, 16.33, -24.15)
CIE-LCHlch(11.13, 29.15, 304.07°)
OKLaboklab(24.06% 0.0252 -0.0687)
OKLCHoklch(24.06% 0.073 290.2)
XYZxyz(1.7990, 1.2787, 4.8537)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20173F #363F17
analogous
#17223F #20173F #34173F
triadic
#20173F #3F2017 #173F20
tetradic
#20173F #3F1722 #363F17 #173F34
square
#20173F #3F1722 #363F17 #173F34
split-complementary
#20173F #3F3417 #223F17
monochromatic
#0B0816 #0B0816 #20173F #37276C #4E3899

Accessibility & contrast

On white

16.72
#20173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#20173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20173F
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20173F#FFFFFF#000000##FFFFFF
##20173F1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E40
Deuteranopia (green-blind)
#041D3E
Tritanopia (blue-blind)
#172028
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #20173f;
/* rgb */ color: rgb(32, 23, 63);
/* oklch */ color: oklch(24.1% 0.073 290.2);
Tailwind
colors: {
  custom: {
    50: '#5e5474',
    500: '#20173f',
    950: '#000000',
  },
}
SCSS
$custom: #20173f;
$custom-light: #5e5474;
$custom-dark: #000000;
JSON
{
  "hex": "#20173f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 253.5,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24061,
    "c": 0.07321,
    "h": 290.2
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#20173F
secondary
#69763C
accent
#D652B8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #20173F

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

Preview Lab → · Contrast checker → · Palette generator →

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