#20164C#20164C

#20164C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.095 H 285.8°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#20164C
RGBrgb(32, 22, 76)
HSLhsl(251, 55%, 19%)
HSVhsv(251, 71%, 30%)
CMYKcmyk(57.9%, 71.1%, 0%, 70.2%)
CIE-LABlab(11.97, 21.63, -31.86)
CIE-LCHlch(11.97, 38.50, 304.17°)
OKLaboklab(25.04% 0.0258 -0.0914)
OKLCHoklch(25.04% 0.095 285.8)
XYZxyz(2.1867, 1.4026, 6.9916)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20164C #424C16
analogous
#16274C #20164C #3B164C
triadic
#20164C #4C2016 #164C20
tetradic
#20164C #4C1627 #424C16 #164C3B
square
#20164C #4C1627 #424C16 #164C3B
split-complementary
#20164C #4C3B16 #274C16
monochromatic
#0A0718 #0C081D #20164C #34247B #4831AB

Accessibility & contrast

On white

16.40
#20164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20164C
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20164C#FFFFFF#000000##FFFFFF
##20164C1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#0F232E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #20164c;
/* rgb */ color: rgb(32, 22, 76);
/* oklch */ color: oklch(25.0% 0.095 285.8);
Tailwind
colors: {
  custom: {
    50: '#61547f',
    500: '#20164c',
    950: '#000000',
  },
}
SCSS
$custom: #20164c;
$custom-light: #61547f;
$custom-dark: #000000;
JSON
{
  "hex": "#20164c",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 251.111,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25036,
    "c": 0.09499,
    "h": 285.8
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#20164C
secondary
#76843A
accent
#DE49C3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20164C

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

Preview Lab → · Contrast checker → · Palette generator →

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