#20116A#20116A

#20116A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.142 H 279.2°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#20116A
RGBrgb(32, 17, 106)
HSLhsl(250, 72%, 24%)
HSVhsv(250, 84%, 42%)
CMYKcmyk(69.8%, 84%, 0%, 58.4%)
CIE-LABlab(14.11, 34.92, -48.53)
CIE-LCHlch(14.11, 59.79, 305.74°)
OKLaboklab(27.52% 0.0228 -0.1401)
OKLCHoklch(27.52% 0.142 279.2)
XYZxyz(3.3968, 1.7483, 13.7913)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20116A #5B6A11
analogous
#112F6A #20116A #4D116A
triadic
#20116A #6A2011 #116A20
tetradic
#20116A #6A112F #5B6A11 #116A4D
square
#20116A #6A112F #5B6A11 #116A4D
split-complementary
#20116A #6A4D11 #2F6A11
monochromatic
#08041A #100935 #20116A #30199F #4022D3

Accessibility & contrast

On white

15.56
#20116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20116A
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20116A#FFFFFF#000000##FFFFFF
##20116A1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002068
Tritanopia (blue-blind)
#002C3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20116a;
/* rgb */ color: rgb(32, 17, 106);
/* oklch */ color: oklch(27.5% 0.142 279.2);
Tailwind
colors: {
  custom: {
    50: '#685296',
    500: '#20116a',
    950: '#000000',
  },
}
SCSS
$custom: #20116a;
$custom-light: #685296;
$custom-dark: #000000;
JSON
{
  "hex": "#20116a",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 250.112,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.27516,
    "c": 0.14199,
    "h": 279.2
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#20116A
secondary
#8FA235
accent
#EF39D0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #20116A

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

Preview Lab → · Contrast checker → · Palette generator →

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