#20115F#20115F

#20115F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.128 H 281.8°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#20115F
RGBrgb(32, 17, 95)
HSLhsl(252, 70%, 22%)
HSVhsv(252, 82%, 37%)
CMYKcmyk(66.3%, 82.1%, 0%, 62.7%)
CIE-LABlab(12.82, 31.30, -43.37)
CIE-LCHlch(12.82, 53.48, 305.82°)
OKLaboklab(26.24% 0.0262 -0.1251)
OKLCHoklch(26.24% 0.128 281.8)
XYZxyz(2.8610, 1.5340, 10.9696)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20115F #505F11
analogous
#11295F #20115F #47115F
triadic
#20115F #5F2011 #115F20
tetradic
#20115F #5F1129 #505F11 #115F47
square
#20115F #5F1129 #505F11 #115F47
split-complementary
#20115F #5F4711 #295F11
monochromatic
#09051A #0F082B #20115F #311A93 #4324C7

Accessibility & contrast

On white

16.07
#20115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#20115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20115F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20115F#FFFFFF#000000##FFFFFF
##20115F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20115f;
/* rgb */ color: rgb(32, 17, 95);
/* oklch */ color: oklch(26.2% 0.128 281.8);
Tailwind
colors: {
  custom: {
    50: '#65518d',
    500: '#20115f',
    950: '#000000',
  },
}
SCSS
$custom: #20115f;
$custom-light: #65518d;
$custom-dark: #000000;
JSON
{
  "hex": "#20115f",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 251.538,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26239,
    "c": 0.12782,
    "h": 281.8
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#20115F
secondary
#849834
accent
#EC3BCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20115F

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

Preview Lab → · Contrast checker → · Palette generator →

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