#20162F#20162F

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

Color values

HEX#20162F
RGBrgb(32, 22, 47)
HSLhsl(264, 36%, 14%)
HSVhsv(264, 53%, 18%)
CMYKcmyk(31.9%, 53.2%, 0%, 81.6%)
CIE-LABlab(9.69, 11.70, -14.92)
CIE-LCHlch(9.69, 18.96, 308.12°)
OKLaboklab(22.62% 0.0251 -0.0417)
OKLCHoklch(22.62% 0.049 301)
XYZxyz(1.3955, 1.0861, 2.8249)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20162F #252F16
analogous
#16182F #20162F #2C162F
triadic
#20162F #2F2016 #162F20
tetradic
#20162F #2F1618 #252F16 #162F2C
square
#20162F #2F1618 #252F16 #162F2C
split-complementary
#20162F #2F2C16 #182F16
monochromatic
#0E0A15 #0E0A15 #20162F #3C2A59 #593D82

Accessibility & contrast

On white

17.25
#20162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20162F
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20162F#FFFFFF#000000##FFFFFF
##20162F1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1B30
Deuteranopia (green-blind)
#111B2E
Tritanopia (blue-blind)
#1D1A20
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20162f;
/* rgb */ color: rgb(32, 22, 47);
/* oklch */ color: oklch(22.6% 0.049 301.0);
Tailwind
colors: {
  custom: {
    50: '#5c5367',
    500: '#20162f',
    950: '#000000',
  },
}
SCSS
$custom: #20162f;
$custom-light: #5c5367;
$custom-dark: #000000;
JSON
{
  "hex": "#20162f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 264,
    "s": 36.232,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22619,
    "c": 0.04869,
    "h": 301
  },
  "luminance": 0.01086
}

Semantic roles & 50–950 ramp

primary
#20162F
secondary
#54653C
accent
#CC5C9F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20162F

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

Preview Lab → · Contrast checker → · Palette generator →

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