#20162C#20162C

#20162C is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.4% C 0.044 H 304.0°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#20162C
RGBrgb(32, 22, 44)
HSLhsl(267, 33%, 13%)
HSVhsv(267, 50%, 17%)
CMYKcmyk(27.3%, 50%, 0%, 82.7%)
CIE-LABlab(9.50, 10.77, -13.00)
CIE-LCHlch(9.50, 16.89, 309.64°)
OKLaboklab(22.42% 0.0244 -0.0362)
OKLCHoklch(22.42% 0.044 304)
XYZxyz(1.3371, 1.0627, 2.5171)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20162C #222C16
analogous
#16172C #20162C #2B162C
triadic
#20162C #2C2016 #162C20
tetradic
#20162C #2C1617 #222C16 #162C2B
square
#20162C #2C1617 #222C16 #162C2B
split-complementary
#20162C #2C2B16 #172C16
monochromatic
#0F0A14 #0F0A14 #20162C #3E2A55 #5B3F7E

Accessibility & contrast

On white

17.32
#20162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#20162C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20162C
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20162C#FFFFFF#000000##FFFFFF
##20162C1.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111A2D
Deuteranopia (green-blind)
#131A2B
Tritanopia (blue-blind)
#1E1A1E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #20162c;
/* rgb */ color: rgb(32, 22, 44);
/* oklch */ color: oklch(22.4% 0.044 304.0);
Tailwind
colors: {
  custom: {
    50: '#5c5365',
    500: '#20162c',
    950: '#000000',
  },
}
SCSS
$custom: #20162c;
$custom-light: #5c5365;
$custom-dark: #000000;
JSON
{
  "hex": "#20162c",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 267.273,
    "s": 33.333,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22419,
    "c": 0.04365,
    "h": 304
  },
  "luminance": 0.01063
}

Semantic roles & 50–950 ramp

primary
#20162C
secondary
#51613C
accent
#C95E99
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #20162C

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

Preview Lab → · Contrast checker → · Palette generator →

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