#20164B#20164B

#20164B is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.093 H 286.1°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#20164B
RGBrgb(32, 22, 75)
HSLhsl(251, 55%, 19%)
HSVhsv(251, 71%, 29%)
CMYKcmyk(57.3%, 70.7%, 0%, 70.6%)
CIE-LABlab(11.88, 21.27, -31.31)
CIE-LCHlch(11.88, 37.85, 304.19°)
OKLaboklab(24.94% 0.026 -0.0898)
OKLCHoklch(24.94% 0.094 286.1)
XYZxyz(2.1522, 1.3888, 6.8099)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20164B #414B16
analogous
#16274B #20164B #3B164B
triadic
#20164B #4B2016 #164B20
tetradic
#20164B #4B1627 #414B16 #164B3B
square
#20164B #4B1627 #414B16 #164B3B
split-complementary
#20164B #4B3B16 #274B16
monochromatic
#0A0718 #0C081C #20164B #34247A #4832AA

Accessibility & contrast

On white

16.43
#20164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20164B
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20164B#FFFFFF#000000##FFFFFF
##20164B1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20164b;
/* rgb */ color: rgb(32, 22, 75);
/* oklch */ color: oklch(24.9% 0.093 286.1);
Tailwind
colors: {
  custom: {
    50: '#60537e',
    500: '#20164b',
    950: '#000000',
  },
}
SCSS
$custom: #20164b;
$custom-light: #60537e;
$custom-dark: #000000;
JSON
{
  "hex": "#20164b",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 251.321,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2494,
    "c": 0.0935,
    "h": 286.1
  },
  "luminance": 0.01389
}

Semantic roles & 50–950 ramp

primary
#20164B
secondary
#75833A
accent
#DE4AC2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20164B

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

Preview Lab → · Contrast checker → · Palette generator →

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