#20115D#20115D

#20115D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.125 H 282.4°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#20115D
RGBrgb(32, 17, 93)
HSLhsl(252, 69%, 22%)
HSVhsv(252, 82%, 36%)
CMYKcmyk(65.6%, 81.7%, 0%, 63.5%)
CIE-LABlab(12.60, 30.63, -42.40)
CIE-LCHlch(12.60, 52.31, 305.85°)
OKLaboklab(26.01% 0.0268 -0.1223)
OKLCHoklch(26.01% 0.125 282.4)
XYZxyz(2.7713, 1.4981, 10.4969)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20115D #4E5D11
analogous
#11285D #20115D #46115D
triadic
#20115D #5D2011 #115D20
tetradic
#20115D #5D1128 #4E5D11 #115D46
square
#20115D #5D1128 #4E5D11 #115D46
split-complementary
#20115D #5D4611 #285D11
monochromatic
#09051A #0E0829 #20115D #321A91 #4424C4

Accessibility & contrast

On white

16.16
#20115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#20115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20115D
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20115D#FFFFFF#000000##FFFFFF
##20115D1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20115d;
/* rgb */ color: rgb(32, 17, 93);
/* oklch */ color: oklch(26.0% 0.125 282.4);
Tailwind
colors: {
  custom: {
    50: '#65518c',
    500: '#20115d',
    950: '#000000',
  },
}
SCSS
$custom: #20115d;
$custom-light: #65518c;
$custom-dark: #000000;
JSON
{
  "hex": "#20115d",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 251.842,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26013,
    "c": 0.12518,
    "h": 282.4
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#20115D
secondary
#829634
accent
#EC3CC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20115D

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

Preview Lab → · Contrast checker → · Palette generator →

#20115D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva