#21115E#21115E

#21115E is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.126 H 282.9°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#21115E
RGBrgb(33, 17, 94)
HSLhsl(252, 69%, 22%)
HSVhsv(252, 82%, 37%)
CMYKcmyk(64.9%, 81.9%, 0%, 63.1%)
CIE-LABlab(12.81, 31.10, -42.71)
CIE-LCHlch(12.81, 52.84, 306.06°)
OKLaboklab(26.22% 0.0282 -0.1232)
OKLCHoklch(26.22% 0.126 282.9)
XYZxyz(2.8474, 1.5322, 10.7332)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21115E #4E5E11
analogous
#11285E #21115E #48115E
triadic
#21115E #5E2111 #115E21
tetradic
#21115E #5E1128 #4E5E11 #115E48
square
#21115E #5E1128 #4E5E11 #115E48
split-complementary
#21115E #5E4811 #285E11
monochromatic
#09051A #0F082A #21115E #331A92 #4524C6

Accessibility & contrast

On white

16.07
#21115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#21115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21115E
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21115E#FFFFFF#000000##FFFFFF
##21115E1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21115e;
/* rgb */ color: rgb(33, 17, 94);
/* oklch */ color: oklch(26.2% 0.126 282.9);
Tailwind
colors: {
  custom: {
    50: '#66518d',
    500: '#21115e',
    950: '#000000',
  },
}
SCSS
$custom: #21115e;
$custom-light: #66518d;
$custom-dark: #000000;
JSON
{
  "hex": "#21115e",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 252.468,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26223,
    "c": 0.12634,
    "h": 282.9
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#21115E
secondary
#829734
accent
#EC3CC7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21115E

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

Preview Lab → · Contrast checker → · Palette generator →

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