#21115C#21115C

#21115C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.124 H 283.4°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#21115C
RGBrgb(33, 17, 92)
HSLhsl(253, 69%, 21%)
HSVhsv(253, 82%, 36%)
CMYKcmyk(64.1%, 81.5%, 0%, 63.9%)
CIE-LABlab(12.59, 30.44, -41.74)
CIE-LCHlch(12.59, 51.66, 306.10°)
OKLaboklab(26% 0.0288 -0.1203)
OKLCHoklch(26% 0.124 283.4)
XYZxyz(2.7588, 1.4968, 10.2667)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21115C #4C5C11
analogous
#11275C #21115C #47115C
triadic
#21115C #5C2111 #115C21
tetradic
#21115C #5C1127 #4C5C11 #115C47
square
#21115C #5C1127 #4C5C11 #115C47
split-complementary
#21115C #5C4711 #275C11
monochromatic
#09051A #0E0728 #21115C #341B90 #4624C3

Accessibility & contrast

On white

16.16
#21115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#21115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21115C
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21115C#FFFFFF#000000##FFFFFF
##21115C1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21115c;
/* rgb */ color: rgb(33, 17, 92);
/* oklch */ color: oklch(26.0% 0.124 283.4);
Tailwind
colors: {
  custom: {
    50: '#65518b',
    500: '#21115c',
    950: '#000000',
  },
}
SCSS
$custom: #21115c;
$custom-light: #65518b;
$custom-dark: #000000;
JSON
{
  "hex": "#21115c",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 252.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25999,
    "c": 0.12371,
    "h": 283.4
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#21115C
secondary
#809534
accent
#EC3CC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21115C

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

Preview Lab → · Contrast checker → · Palette generator →

#21115C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva