#20162A#20162A

#20162A is a very dark, muted violet. Relative luminance 0.010; OKLCH L 22.3% C 0.040 H 306.4°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#20162A
RGBrgb(32, 22, 42)
HSLhsl(270, 31%, 13%)
HSVhsv(270, 48%, 16%)
CMYKcmyk(23.8%, 47.6%, 0%, 83.5%)
CIE-LABlab(9.39, 10.16, -11.71)
CIE-LCHlch(9.39, 15.50, 310.96°)
OKLaboklab(22.29% 0.0239 -0.0324)
OKLCHoklch(22.29% 0.04 306.4)
XYZxyz(1.3004, 1.0481, 2.3238)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20162A #202A16
analogous
#16162A #20162A #2A162A
triadic
#20162A #2A2016 #162A20
tetradic
#20162A #2A1616 #202A16 #162A2A
square
#20162A #2A1616 #202A16 #162A2A
split-complementary
#20162A #2A2A16 #162A16
monochromatic
#0F0B14 #0F0B14 #20162A #3F2B52 #5D407A

Accessibility & contrast

On white

17.36
#20162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20162A
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20162A#FFFFFF#000000##FFFFFF
##20162A1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121A2B
Deuteranopia (green-blind)
#141A29
Tritanopia (blue-blind)
#1F191E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #20162a;
/* rgb */ color: rgb(32, 22, 42);
/* oklch */ color: oklch(22.3% 0.040 306.4);
Tailwind
colors: {
  custom: {
    50: '#5c5363',
    500: '#20162a',
    950: '#000000',
  },
}
SCSS
$custom: #20162a;
$custom-light: #5c5363;
$custom-dark: #000000;
JSON
{
  "hex": "#20162a",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 270,
    "s": 31.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22291,
    "c": 0.04029,
    "h": 306.4
  },
  "luminance": 0.01048
}

Semantic roles & 50–950 ramp

primary
#20162A
secondary
#4E5F3D
accent
#C76094
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #20162A

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

Preview Lab → · Contrast checker → · Palette generator →

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