#20122A#20122A

#20122A is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.4% C 0.049 H 309.7°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#20122A
RGBrgb(32, 18, 42)
HSLhsl(275, 40%, 12%)
HSVhsv(275, 57%, 16%)
CMYKcmyk(23.8%, 57.1%, 0%, 83.5%)
CIE-LABlab(8.19, 13.11, -13.58)
CIE-LCHlch(8.19, 18.88, 313.99°)
OKLaboklab(21.39% 0.0314 -0.0378)
OKLCHoklch(21.39% 0.049 309.7)
XYZxyz(1.2298, 0.9069, 2.3003)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20122A #1C2A12
analogous
#14122A #20122A #2A1228
triadic
#20122A #2A2012 #122A20
tetradic
#20122A #2A1412 #1C2A12 #12282A
square
#20122A #2A1412 #1C2A12 #12282A
split-complementary
#20122A #282A12 #122A14
monochromatic
#100915 #100915 #20122A #412455 #613780

Accessibility & contrast

On white

17.78
#20122A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#20122A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20122A
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20122A#FFFFFF#000000##FFFFFF
##20122A1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C172B
Deuteranopia (green-blind)
#101829
Tritanopia (blue-blind)
#1F161C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #20122a;
/* rgb */ color: rgb(32, 18, 42);
/* oklch */ color: oklch(21.4% 0.049 309.7);
Tailwind
colors: {
  custom: {
    50: '#5c5063',
    500: '#20122a',
    950: '#000000',
  },
}
SCSS
$custom: #20122a;
$custom-light: #5c5063;
$custom-dark: #000000;
JSON
{
  "hex": "#20122a",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 42
  },
  "hsl": {
    "h": 275,
    "s": 40,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21391,
    "c": 0.04918,
    "h": 309.7
  },
  "luminance": 0.00907
}

Semantic roles & 50–950 ramp

primary
#20122A
secondary
#486137
accent
#D0588A
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #20122A

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

Preview Lab → · Contrast checker → · Palette generator →

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