#20174C#20174C

#20174C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.093 H 285.3°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#20174C
RGBrgb(32, 23, 76)
HSLhsl(250, 54%, 19%)
HSVhsv(250, 70%, 30%)
CMYKcmyk(57.9%, 69.7%, 0%, 70.2%)
CIE-LABlab(12.23, 20.94, -31.44)
CIE-LCHlch(12.23, 37.77, 303.67°)
OKLaboklab(25.22% 0.0247 -0.0902)
OKLCHoklch(25.22% 0.093 285.3)
XYZxyz(2.2062, 1.4416, 6.9981)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20174C #434C17
analogous
#17294C #20174C #3B174C
triadic
#20174C #4C2017 #174C20
tetradic
#20174C #4C1729 #434C17 #174C3B
square
#20174C #4C1729 #434C17 #174C3B
split-complementary
#20174C #4C3B17 #294C17
monochromatic
#0A0717 #0C091D #20174C #34257B #4833AA

Accessibility & contrast

On white

16.30
#20174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#20174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20174C
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20174C#FFFFFF#000000##FFFFFF
##20174C1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#0E242F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20174c;
/* rgb */ color: rgb(32, 23, 76);
/* oklch */ color: oklch(25.2% 0.093 285.3);
Tailwind
colors: {
  custom: {
    50: '#60547e',
    500: '#20174c',
    950: '#000000',
  },
}
SCSS
$custom: #20174c;
$custom-light: #60547e;
$custom-dark: #000000;
JSON
{
  "hex": "#20174c",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 250.189,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25222,
    "c": 0.09349,
    "h": 285.3
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#20174C
secondary
#77833C
accent
#DD4BC4
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #20174C

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

Preview Lab → · Contrast checker → · Palette generator →

#20174C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva