#20115C#20115C

#20115C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.124 H 282.6°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#20115C
RGBrgb(32, 17, 92)
HSLhsl(252, 69%, 21%)
HSVhsv(252, 82%, 36%)
CMYKcmyk(65.2%, 81.5%, 0%, 63.9%)
CIE-LABlab(12.48, 30.30, -41.92)
CIE-LCHlch(12.48, 51.72, 305.86°)
OKLaboklab(25.9% 0.0271 -0.1209)
OKLCHoklch(25.9% 0.124 282.6)
XYZxyz(2.7273, 1.4805, 10.2652)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20115C #4D5C11
analogous
#11285C #20115C #46115C
triadic
#20115C #5C2011 #115C20
tetradic
#20115C #5C1128 #4D5C11 #115C46
square
#20115C #5C1128 #4D5C11 #115C46
split-complementary
#20115C #5C4611 #285C11
monochromatic
#09051A #0E0728 #20115C #321B90 #4424C3

Accessibility & contrast

On white

16.20
#20115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20115C
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20115C#FFFFFF#000000##FFFFFF
##20115C1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20115c;
/* rgb */ color: rgb(32, 17, 92);
/* oklch */ color: oklch(25.9% 0.124 282.6);
Tailwind
colors: {
  custom: {
    50: '#65518b',
    500: '#20115c',
    950: '#000000',
  },
}
SCSS
$custom: #20115c;
$custom-light: #65518b;
$custom-dark: #000000;
JSON
{
  "hex": "#20115c",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 252,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.259,
    "c": 0.12386,
    "h": 282.6
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20115C

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

Preview Lab → · Contrast checker → · Palette generator →

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