#20122C#20122C

#20122C is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.5% C 0.052 H 307.4°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#20122C
RGBrgb(32, 18, 44)
HSLhsl(272, 42%, 12%)
HSVhsv(272, 59%, 17%)
CMYKcmyk(27.3%, 59.1%, 0%, 82.7%)
CIE-LABlab(8.32, 13.71, -14.86)
CIE-LCHlch(8.32, 20.22, 312.69°)
OKLaboklab(21.53% 0.0318 -0.0415)
OKLCHoklch(21.53% 0.052 307.4)
XYZxyz(1.2665, 0.9216, 2.4935)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20122C #1E2C12
analogous
#13122C #20122C #2C122B
triadic
#20122C #2C2012 #122C20
tetradic
#20122C #2C1312 #1E2C12 #122B2C
square
#20122C #2C1312 #1E2C12 #122B2C
split-complementary
#20122C #2B2C12 #122C13
monochromatic
#100916 #100916 #20122C #402457 #5F3683

Accessibility & contrast

On white

17.73
#20122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20122C
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20122C#FFFFFF#000000##FFFFFF
##20122C1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182D
Deuteranopia (green-blind)
#0F182B
Tritanopia (blue-blind)
#1E161C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #20122c;
/* rgb */ color: rgb(32, 18, 44);
/* oklch */ color: oklch(21.5% 0.052 307.4);
Tailwind
colors: {
  custom: {
    50: '#5c5065',
    500: '#20122c',
    950: '#000000',
  },
}
SCSS
$custom: #20122c;
$custom-light: #5c5065;
$custom-dark: #000000;
JSON
{
  "hex": "#20122c",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 272.308,
    "s": 41.935,
    "l": 12.157
  },
  "oklch": {
    "l": 0.2153,
    "c": 0.05232,
    "h": 307.4
  },
  "luminance": 0.00922
}

Semantic roles & 50–950 ramp

primary
#20122C
secondary
#4B6336
accent
#D2568F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #20122C

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

Preview Lab → · Contrast checker → · Palette generator →

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