#20122F#20122F

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

Color values

HEX#20122F
RGBrgb(32, 18, 47)
HSLhsl(269, 45%, 13%)
HSVhsv(269, 62%, 18%)
CMYKcmyk(31.9%, 61.7%, 0%, 81.6%)
CIE-LABlab(8.52, 14.63, -16.76)
CIE-LCHlch(8.52, 22.25, 311.11°)
OKLaboklab(21.75% 0.0322 -0.0471)
OKLCHoklch(21.75% 0.057 304.4)
XYZxyz(1.3249, 0.9449, 2.8014)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20122F #212F12
analogous
#12122F #20122F #2E122F
triadic
#20122F #2F2012 #122F20
tetradic
#20122F #2F1212 #212F12 #122F2E
square
#20122F #2F1212 #212F12 #122F2E
split-complementary
#20122F #2F2E12 #122F12
monochromatic
#0F0816 #0F0816 #20122F #3E235B #5C3488

Accessibility & contrast

On white

17.66
#20122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20122F
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20122F#FFFFFF#000000##FFFFFF
##20122F1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091830
Deuteranopia (green-blind)
#0D192E
Tritanopia (blue-blind)
#1D171E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #20122f;
/* rgb */ color: rgb(32, 18, 47);
/* oklch */ color: oklch(21.7% 0.057 304.4);
Tailwind
colors: {
  custom: {
    50: '#5c5067',
    500: '#20122f',
    950: '#000000',
  },
}
SCSS
$custom: #20122f;
$custom-light: #5c5067;
$custom-dark: #000000;
JSON
{
  "hex": "#20122f",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 268.966,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21748,
    "c": 0.05703,
    "h": 304.4
  },
  "luminance": 0.00945
}

Semantic roles & 50–950 ramp

primary
#20122F
secondary
#4F6736
accent
#D45396
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20122F

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

Preview Lab → · Contrast checker → · Palette generator →

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