#20162E#20162E

#20162E is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.6% C 0.047 H 302.0°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#20162E
RGBrgb(32, 22, 46)
HSLhsl(265, 35%, 13%)
HSVhsv(265, 52%, 18%)
CMYKcmyk(30.4%, 52.2%, 0%, 82%)
CIE-LABlab(9.63, 11.39, -14.28)
CIE-LCHlch(9.63, 18.27, 308.57°)
OKLaboklab(22.55% 0.0249 -0.0399)
OKLCHoklch(22.55% 0.047 302)
XYZxyz(1.3756, 1.0782, 2.7199)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20162E #242E16
analogous
#16182E #20162E #2C162E
triadic
#20162E #2E2016 #162E20
tetradic
#20162E #2E1618 #242E16 #162E2C
square
#20162E #2E1618 #242E16 #162E2C
split-complementary
#20162E #2E2C16 #182E16
monochromatic
#0E0A15 #0E0A15 #20162E #3D2A57 #5A3E81

Accessibility & contrast

On white

17.28
#20162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#20162E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20162E
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20162E#FFFFFF#000000##FFFFFF
##20162E1.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101B2F
Deuteranopia (green-blind)
#121B2D
Tritanopia (blue-blind)
#1E1A1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20162e;
/* rgb */ color: rgb(32, 22, 46);
/* oklch */ color: oklch(22.6% 0.047 302.0);
Tailwind
colors: {
  custom: {
    50: '#5c5367',
    500: '#20162e',
    950: '#000000',
  },
}
SCSS
$custom: #20162e;
$custom-light: #5c5367;
$custom-dark: #000000;
JSON
{
  "hex": "#20162e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 265,
    "s": 35.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22551,
    "c": 0.04701,
    "h": 302
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#20162E
secondary
#53643C
accent
#CB5C9D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20162E

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

Preview Lab → · Contrast checker → · Palette generator →

#20162E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva