#20123A#20123A

#20123A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.074 H 296.1°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#20123A
RGBrgb(32, 18, 58)
HSLhsl(261, 53%, 15%)
HSVhsv(261, 69%, 23%)
CMYKcmyk(44.8%, 69%, 0%, 77.3%)
CIE-LABlab(9.36, 18.17, -23.42)
CIE-LCHlch(9.36, 29.64, 307.80°)
OKLaboklab(22.64% 0.0326 -0.0666)
OKLCHoklch(22.64% 0.074 296.1)
XYZxyz(1.5755, 1.0451, 4.1209)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20123A #2C3A12
analogous
#12183A #20123A #34123A
triadic
#20123A #3A2012 #123A20
tetradic
#20123A #3A1218 #2C3A12 #123A34
square
#20123A #3A1218 #2C3A12 #123A34
split-complementary
#20123A #3A3412 #183A12
monochromatic
#0D0717 #0D0717 #20123A #3A2069 #542F97

Accessibility & contrast

On white

17.37
#20123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#20123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20123A
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20123A#FFFFFF#000000##FFFFFF
##20123A1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#031A39
Tritanopia (blue-blind)
#1A1B23
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #20123a;
/* rgb */ color: rgb(32, 18, 58);
/* oklch */ color: oklch(22.6% 0.074 296.1);
Tailwind
colors: {
  custom: {
    50: '#5e5070',
    500: '#20123a',
    950: '#000000',
  },
}
SCSS
$custom: #20123a;
$custom-light: #5e5070;
$custom-dark: #000000;
JSON
{
  "hex": "#20123a",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 261,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22635,
    "c": 0.07416,
    "h": 296.1
  },
  "luminance": 0.01045
}

Semantic roles & 50–950 ramp

primary
#20123A
secondary
#5D7335
accent
#DC4CAA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #20123A

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

Preview Lab → · Contrast checker → · Palette generator →

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