#20123B#20123B

#20123B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.7% C 0.076 H 295.5°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#20123B
RGBrgb(32, 18, 59)
HSLhsl(260, 53%, 15%)
HSVhsv(260, 69%, 23%)
CMYKcmyk(45.8%, 69.5%, 0%, 76.9%)
CIE-LABlab(9.44, 18.50, -24.01)
CIE-LCHlch(9.44, 30.31, 307.62°)
OKLaboklab(22.72% 0.0326 -0.0683)
OKLCHoklch(22.72% 0.076 295.5)
XYZxyz(1.6012, 1.0554, 4.2562)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20123B #2D3B12
analogous
#12183B #20123B #35123B
triadic
#20123B #3B2012 #123B20
tetradic
#20123B #3B1218 #2D3B12 #123B35
square
#20123B #3B1218 #2D3B12 #123B35
split-complementary
#20123B #3B3512 #183B12
monochromatic
#0D0717 #0D0717 #20123B #39206A #532F99

Accessibility & contrast

On white

17.34
#20123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20123B
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20123B#FFFFFF#000000##FFFFFF
##20123B1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#021A3A
Tritanopia (blue-blind)
#191B24
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #20123b;
/* rgb */ color: rgb(32, 18, 59);
/* oklch */ color: oklch(22.7% 0.076 295.5);
Tailwind
colors: {
  custom: {
    50: '#5e5071',
    500: '#20123b',
    950: '#000000',
  },
}
SCSS
$custom: #20123b;
$custom-light: #5e5071;
$custom-dark: #000000;
JSON
{
  "hex": "#20123b",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 260.488,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22722,
    "c": 0.07569,
    "h": 295.5
  },
  "luminance": 0.01055
}

Semantic roles & 50–950 ramp

primary
#20123B
secondary
#5E7435
accent
#DD4BAB
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #20123B

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

Preview Lab → · Contrast checker → · Palette generator →

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