#20122E#20122E

#20122E is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.7% C 0.055 H 305.3°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#20122E
RGBrgb(32, 18, 46)
HSLhsl(270, 44%, 13%)
HSVhsv(270, 61%, 18%)
CMYKcmyk(30.4%, 60.9%, 0%, 82%)
CIE-LABlab(8.46, 14.32, -16.13)
CIE-LCHlch(8.46, 21.57, 311.59°)
OKLaboklab(21.67% 0.0321 -0.0452)
OKLCHoklch(21.67% 0.055 305.3)
XYZxyz(1.3050, 0.9370, 2.6963)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20122E #202E12
analogous
#12122E #20122E #2E122E
triadic
#20122E #2E2012 #122E20
tetradic
#20122E #2E1212 #202E12 #122E2E
square
#20122E #2E1212 #202E12 #122E2E
split-complementary
#20122E #2E2E12 #122E12
monochromatic
#0F0916 #0F0916 #20122E #3F235A #5D3486

Accessibility & contrast

On white

17.69
#20122E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20122E
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20122E#FFFFFF#000000##FFFFFF
##20122E1.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20122e;
/* rgb */ color: rgb(32, 18, 46);
/* oklch */ color: oklch(21.7% 0.055 305.3);
Tailwind
colors: {
  custom: {
    50: '#5c5067',
    500: '#20122e',
    950: '#000000',
  },
}
SCSS
$custom: #20122e;
$custom-light: #5c5067;
$custom-dark: #000000;
JSON
{
  "hex": "#20122e",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 46
  },
  "hsl": {
    "h": 270,
    "s": 43.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21674,
    "c": 0.05546,
    "h": 305.3
  },
  "luminance": 0.00937
}

Semantic roles & 50–950 ramp

primary
#20122E
secondary
#4E6636
accent
#D35494
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20122E

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

Preview Lab → · Contrast checker → · Palette generator →

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