#20116B#20116B

#20116B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.143 H 279.0°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#20116B
RGBrgb(32, 17, 107)
HSLhsl(250, 73%, 24%)
HSVhsv(250, 84%, 42%)
CMYKcmyk(70.1%, 84.1%, 0%, 58%)
CIE-LABlab(14.23, 35.25, -48.99)
CIE-LCHlch(14.23, 60.36, 305.74°)
OKLaboklab(27.63% 0.0225 -0.1415)
OKLCHoklch(27.63% 0.143 279)
XYZxyz(3.4491, 1.7692, 14.0668)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20116B #5C6B11
analogous
#112F6B #20116B #4D116B
triadic
#20116B #6B2011 #116B20
tetradic
#20116B #6B112F #5C6B11 #116B4D
square
#20116B #6B112F #5C6B11 #116B4D
split-complementary
#20116B #6B4D11 #2F6B11
monochromatic
#08041A #100936 #20116B #3019A0 #4022D5

Accessibility & contrast

On white

15.51
#20116B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#20116B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20116B
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20116B#FFFFFF#000000##FFFFFF
##20116B1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276D
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20116b;
/* rgb */ color: rgb(32, 17, 107);
/* oklch */ color: oklch(27.6% 0.143 279.0);
Tailwind
colors: {
  custom: {
    50: '#685296',
    500: '#20116b',
    950: '#000000',
  },
}
SCSS
$custom: #20116b;
$custom-light: #685296;
$custom-dark: #000000;
JSON
{
  "hex": "#20116b",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 107
  },
  "hsl": {
    "h": 250,
    "s": 72.581,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27634,
    "c": 0.14325,
    "h": 279
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#20116B
secondary
#90A335
accent
#EF39D1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #20116B

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

Preview Lab → · Contrast checker → · Palette generator →

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