#20174B#20174B

#20174B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.092 H 285.6°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#20174B
RGBrgb(32, 23, 75)
HSLhsl(250, 53%, 19%)
HSVhsv(250, 69%, 29%)
CMYKcmyk(57.3%, 69.3%, 0%, 70.6%)
CIE-LABlab(12.14, 20.58, -30.89)
CIE-LCHlch(12.14, 37.12, 303.67°)
OKLaboklab(25.13% 0.0248 -0.0886)
OKLCHoklch(25.13% 0.092 285.6)
XYZxyz(2.1717, 1.4278, 6.8164)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20174B #424B17
analogous
#17284B #20174B #3A174B
triadic
#20174B #4B2017 #174B20
tetradic
#20174B #4B1728 #424B17 #174B3A
square
#20174B #4B1728 #424B17 #174B3A
split-complementary
#20174B #4B3A17 #284B17
monochromatic
#0A0717 #0C091C #20174B #34257A #4834A9

Accessibility & contrast

On white

16.33
#20174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20174B
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20174B#FFFFFF#000000##FFFFFF
##20174B1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#0F242E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20174b;
/* rgb */ color: rgb(32, 23, 75);
/* oklch */ color: oklch(25.1% 0.092 285.6);
Tailwind
colors: {
  custom: {
    50: '#60547e',
    500: '#20174b',
    950: '#000000',
  },
}
SCSS
$custom: #20174b;
$custom-light: #60547e;
$custom-dark: #000000;
JSON
{
  "hex": "#20174b",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 250.385,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25128,
    "c": 0.09198,
    "h": 285.6
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#20174B
secondary
#76823C
accent
#DC4BC3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20174B

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

Preview Lab → · Contrast checker → · Palette generator →

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