#20164A#20164A

#20164A is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.092 H 286.5°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#20164A
RGBrgb(32, 22, 74)
HSLhsl(252, 54%, 19%)
HSVhsv(252, 70%, 29%)
CMYKcmyk(56.8%, 70.3%, 0%, 71%)
CIE-LABlab(11.79, 20.91, -30.77)
CIE-LCHlch(11.79, 37.21, 304.20°)
OKLaboklab(24.85% 0.0261 -0.0882)
OKLCHoklch(24.85% 0.092 286.5)
XYZxyz(2.1182, 1.3752, 6.6311)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20164A #404A16
analogous
#16264A #20164A #3A164A
triadic
#20164A #4A2016 #164A20
tetradic
#20164A #4A1626 #404A16 #164A3A
square
#20164A #4A1626 #404A16 #164A3A
split-complementary
#20164A #4A3A16 #264A16
monochromatic
#0A0718 #0C081B #20164A #342479 #4932A8

Accessibility & contrast

On white

16.47
#20164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#20164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20164A
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20164A#FFFFFF#000000##FFFFFF
##20164A1.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#10232D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #20164a;
/* rgb */ color: rgb(32, 22, 74);
/* oklch */ color: oklch(24.8% 0.092 286.5);
Tailwind
colors: {
  custom: {
    50: '#60537d',
    500: '#20164a',
    950: '#000000',
  },
}
SCSS
$custom: #20164a;
$custom-light: #60537d;
$custom-dark: #000000;
JSON
{
  "hex": "#20164a",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 251.538,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24845,
    "c": 0.09199,
    "h": 286.5
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20164A

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

Preview Lab → · Contrast checker → · Palette generator →

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