#20164D#20164D

#20164D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.096 H 285.5°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#20164D
RGBrgb(32, 22, 77)
HSLhsl(251, 56%, 19%)
HSVhsv(251, 71%, 30%)
CMYKcmyk(58.4%, 71.4%, 0%, 69.8%)
CIE-LABlab(12.07, 21.98, -32.39)
CIE-LCHlch(12.07, 39.15, 304.16°)
OKLaboklab(25.13% 0.0257 -0.093)
OKLCHoklch(25.13% 0.096 285.5)
XYZxyz(2.2217, 1.4166, 7.1761)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20164D #434D16
analogous
#16284D #20164D #3C164D
triadic
#20164D #4D2016 #164D20
tetradic
#20164D #4D1628 #434D16 #164D3C
square
#20164D #4D1628 #434D16 #164D3C
split-complementary
#20164D #4D3C16 #284D16
monochromatic
#0A0718 #0C081D #20164D #34247D #4831AC

Accessibility & contrast

On white

16.36
#20164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#20164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20164D
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20164D#FFFFFF#000000##FFFFFF
##20164D1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20164d;
/* rgb */ color: rgb(32, 22, 77);
/* oklch */ color: oklch(25.1% 0.096 285.5);
Tailwind
colors: {
  custom: {
    50: '#61547f',
    500: '#20164d',
    950: '#000000',
  },
}
SCSS
$custom: #20164d;
$custom-light: #61547f;
$custom-dark: #000000;
JSON
{
  "hex": "#20164d",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 250.909,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25132,
    "c": 0.09648,
    "h": 285.5
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20164D

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

Preview Lab → · Contrast checker → · Palette generator →

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