#20164F#20164F

#20164F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.099 H 284.8°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#20164F
RGBrgb(32, 22, 79)
HSLhsl(251, 56%, 20%)
HSVhsv(251, 72%, 31%)
CMYKcmyk(59.5%, 72.2%, 0%, 69%)
CIE-LABlab(12.26, 22.69, -33.46)
CIE-LCHlch(12.26, 40.43, 304.14°)
OKLaboklab(25.33% 0.0254 -0.0961)
OKLCHoklch(25.33% 0.099 284.8)
XYZxyz(2.2934, 1.4453, 7.5537)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20164F #454F16
analogous
#16294F #20164F #3D164F
triadic
#20164F #4F2016 #164F20
tetradic
#20164F #4F1629 #454F16 #164F3D
square
#20164F #4F1629 #454F16 #164F3D
split-complementary
#20164F #4F3D16 #294F16
monochromatic
#0A0718 #0D091F #20164F #33237F #4731AF

Accessibility & contrast

On white

16.29
#20164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20164F
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20164F#FFFFFF#000000##FFFFFF
##20164F1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#0C2430
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20164f;
/* rgb */ color: rgb(32, 22, 79);
/* oklch */ color: oklch(25.3% 0.099 284.8);
Tailwind
colors: {
  custom: {
    50: '#615481',
    500: '#20164f',
    950: '#000000',
  },
}
SCSS
$custom: #20164f;
$custom-light: #615481;
$custom-dark: #000000;
JSON
{
  "hex": "#20164f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 250.526,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25327,
    "c": 0.09944,
    "h": 284.8
  },
  "luminance": 0.01445
}

Semantic roles & 50–950 ramp

primary
#20164F
secondary
#79863A
accent
#E048C5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20164F

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

Preview Lab → · Contrast checker → · Palette generator →

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