#20122B#20122B

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

Color values

HEX#20122B
RGBrgb(32, 18, 43)
HSLhsl(274, 41%, 12%)
HSVhsv(274, 58%, 17%)
CMYKcmyk(25.6%, 58.1%, 0%, 83.1%)
CIE-LABlab(8.25, 13.41, -14.23)
CIE-LCHlch(8.25, 19.55, 313.31°)
OKLaboklab(21.46% 0.0316 -0.0397)
OKLCHoklch(21.46% 0.051 308.5)
XYZxyz(1.2479, 0.9141, 2.3957)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20122B #1D2B12
analogous
#14122B #20122B #2B122A
triadic
#20122B #2B2012 #122B20
tetradic
#20122B #2B1412 #1D2B12 #122A2B
square
#20122B #2B1412 #1D2B12 #122A2B
split-complementary
#20122B #2A2B12 #122B14
monochromatic
#100916 #100916 #20122B #402456 #603681

Accessibility & contrast

On white

17.75
#20122B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20122B
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20122B#FFFFFF#000000##FFFFFF
##20122B1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C172C
Deuteranopia (green-blind)
#10182A
Tritanopia (blue-blind)
#1F161C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #20122b;
/* rgb */ color: rgb(32, 18, 43);
/* oklch */ color: oklch(21.5% 0.051 308.5);
Tailwind
colors: {
  custom: {
    50: '#5c5064',
    500: '#20122b',
    950: '#000000',
  },
}
SCSS
$custom: #20122b;
$custom-light: #5c5064;
$custom-dark: #000000;
JSON
{
  "hex": "#20122b",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 43
  },
  "hsl": {
    "h": 273.6,
    "s": 40.984,
    "l": 11.961
  },
  "oklch": {
    "l": 0.2146,
    "c": 0.05075,
    "h": 308.5
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#20122B
secondary
#4A6236
accent
#D1578D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #20122B

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

Preview Lab → · Contrast checker → · Palette generator →

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