#20122D#20122D

#20122D is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.6% C 0.054 H 306.4°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#20122D
RGBrgb(32, 18, 45)
HSLhsl(271, 43%, 12%)
HSVhsv(271, 60%, 18%)
CMYKcmyk(28.9%, 60%, 0%, 82.4%)
CIE-LABlab(8.39, 14.01, -15.50)
CIE-LCHlch(8.39, 20.89, 312.11°)
OKLaboklab(21.6% 0.0319 -0.0434)
OKLCHoklch(21.6% 0.054 306.4)
XYZxyz(1.2855, 0.9292, 2.5937)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20122D #1F2D12
analogous
#13122D #20122D #2D122D
triadic
#20122D #2D2012 #122D20
tetradic
#20122D #2D1312 #1F2D12 #122D2D
square
#20122D #2D1312 #1F2D12 #122D2D
split-complementary
#20122D #2D2D12 #122D13
monochromatic
#100916 #100916 #20122D #3F2359 #5E3584

Accessibility & contrast

On white

17.71
#20122D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#20122D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20122D
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20122D#FFFFFF#000000##FFFFFF
##20122D1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182E
Deuteranopia (green-blind)
#0E182C
Tritanopia (blue-blind)
#1E171D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #20122d;
/* rgb */ color: rgb(32, 18, 45);
/* oklch */ color: oklch(21.6% 0.054 306.4);
Tailwind
colors: {
  custom: {
    50: '#5c5066',
    500: '#20122d',
    950: '#000000',
  },
}
SCSS
$custom: #20122d;
$custom-light: #5c5066;
$custom-dark: #000000;
JSON
{
  "hex": "#20122d",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 45
  },
  "hsl": {
    "h": 271.111,
    "s": 42.857,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21602,
    "c": 0.05389,
    "h": 306.4
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#20122D
secondary
#4D6536
accent
#D35592
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20122D

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

Preview Lab → · Contrast checker → · Palette generator →

#20122D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva