#20115B#20115B

#20115B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.8% C 0.123 H 282.9°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#20115B
RGBrgb(32, 17, 91)
HSLhsl(252, 69%, 21%)
HSVhsv(252, 81%, 36%)
CMYKcmyk(64.8%, 81.3%, 0%, 64.3%)
CIE-LABlab(12.37, 29.97, -41.43)
CIE-LCHlch(12.37, 51.13, 305.88°)
OKLaboklab(25.79% 0.0274 -0.1194)
OKLCHoklch(25.79% 0.123 282.9)
XYZxyz(2.6839, 1.4631, 10.0365)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20115B #4C5B11
analogous
#11275B #20115B #45115B
triadic
#20115B #5B2011 #115B20
tetradic
#20115B #5B1127 #4C5B11 #115B45
square
#20115B #5B1127 #4C5B11 #115B45
split-complementary
#20115B #5B4511 #275B11
monochromatic
#09051A #0E0727 #20115B #321B8F #4424C2

Accessibility & contrast

On white

16.25
#20115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#20115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20115B
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20115B#FFFFFF#000000##FFFFFF
##20115B1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20115b;
/* rgb */ color: rgb(32, 17, 91);
/* oklch */ color: oklch(25.8% 0.123 282.9);
Tailwind
colors: {
  custom: {
    50: '#64518a',
    500: '#20115b',
    950: '#000000',
  },
}
SCSS
$custom: #20115b;
$custom-light: #64518a;
$custom-dark: #000000;
JSON
{
  "hex": "#20115b",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 252.162,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25788,
    "c": 0.12254,
    "h": 282.9
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#20115B
secondary
#809434
accent
#EB3CC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20115B

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

Preview Lab → · Contrast checker → · Palette generator →

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