#20164E#20164E

#20164E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.098 H 285.1°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#20164E
RGBrgb(32, 22, 78)
HSLhsl(251, 56%, 20%)
HSVhsv(251, 72%, 31%)
CMYKcmyk(59%, 71.8%, 0%, 69.4%)
CIE-LABlab(12.16, 22.34, -32.93)
CIE-LCHlch(12.16, 39.79, 304.15°)
OKLaboklab(25.23% 0.0256 -0.0946)
OKLCHoklch(25.23% 0.098 285.1)
XYZxyz(2.2573, 1.4308, 7.3635)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20164E #444E16
analogous
#16284E #20164E #3C164E
triadic
#20164E #4E2016 #164E20
tetradic
#20164E #4E1628 #444E16 #164E3C
square
#20164E #4E1628 #444E16 #164E3C
split-complementary
#20164E #4E3C16 #284E16
monochromatic
#0A0718 #0C091E #20164E #34237E #4731AD

Accessibility & contrast

On white

16.33
#20164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#20164E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20164E
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20164E#FFFFFF#000000##FFFFFF
##20164E1.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)
#002150
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#0D242F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20164e;
/* rgb */ color: rgb(32, 22, 78);
/* oklch */ color: oklch(25.2% 0.098 285.1);
Tailwind
colors: {
  custom: {
    50: '#615480',
    500: '#20164e',
    950: '#000000',
  },
}
SCSS
$custom: #20164e;
$custom-light: #615480;
$custom-dark: #000000;
JSON
{
  "hex": "#20164e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 250.714,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25229,
    "c": 0.09796,
    "h": 285.1
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#20164E
secondary
#78853A
accent
#DF49C4
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20164E

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

Preview Lab → · Contrast checker → · Palette generator →

#20164E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva