#20115A#20115A

#20115A is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.7% C 0.121 H 283.2°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#20115A
RGBrgb(32, 17, 90)
HSLhsl(252, 68%, 21%)
HSVhsv(252, 81%, 35%)
CMYKcmyk(64.4%, 81.1%, 0%, 64.7%)
CIE-LABlab(12.26, 29.63, -40.94)
CIE-LCHlch(12.26, 50.53, 305.90°)
OKLaboklab(25.68% 0.0277 -0.118)
OKLCHoklch(25.68% 0.121 283.2)
XYZxyz(2.6410, 1.4460, 9.8108)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20115A #4B5A11
analogous
#11265A #20115A #44115A
triadic
#20115A #5A2011 #115A20
tetradic
#20115A #5A1126 #4B5A11 #115A44
square
#20115A #5A1126 #4B5A11 #115A44
split-complementary
#20115A #5A4411 #265A11
monochromatic
#09051A #0E0727 #20115A #321B8D #4524C1

Accessibility & contrast

On white

16.29
#20115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20115A
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20115A#FFFFFF#000000##FFFFFF
##20115A1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20115a;
/* rgb */ color: rgb(32, 17, 90);
/* oklch */ color: oklch(25.7% 0.121 283.2);
Tailwind
colors: {
  custom: {
    50: '#645189',
    500: '#20115a',
    950: '#000000',
  },
}
SCSS
$custom: #20115a;
$custom-light: #645189;
$custom-dark: #000000;
JSON
{
  "hex": "#20115a",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 252.329,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25676,
    "c": 0.12122,
    "h": 283.2
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#20115A
secondary
#7F9334
accent
#EB3DC7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20115A

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

Preview Lab → · Contrast checker → · Palette generator →

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