#21115F#21115F

#21115F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.128 H 282.6°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#21115F
RGBrgb(33, 17, 95)
HSLhsl(252, 70%, 22%)
HSVhsv(252, 82%, 37%)
CMYKcmyk(65.3%, 82.1%, 0%, 62.7%)
CIE-LABlab(12.92, 31.43, -43.20)
CIE-LCHlch(12.92, 53.42, 306.04°)
OKLaboklab(26.33% 0.0279 -0.1246)
OKLCHoklch(26.33% 0.128 282.6)
XYZxyz(2.8926, 1.5503, 10.9711)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21115F #4F5F11
analogous
#11285F #21115F #48115F
triadic
#21115F #5F2111 #115F21
tetradic
#21115F #5F1128 #4F5F11 #115F48
square
#21115F #5F1128 #4F5F11 #115F48
split-complementary
#21115F #5F4811 #285F11
monochromatic
#09051A #0F082B #21115F #331A93 #4524C7

Accessibility & contrast

On white

16.03
#21115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21115F
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21115F#FFFFFF#000000##FFFFFF
##21115F1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21115f;
/* rgb */ color: rgb(33, 17, 95);
/* oklch */ color: oklch(26.3% 0.128 282.6);
Tailwind
colors: {
  custom: {
    50: '#66518d',
    500: '#21115f',
    950: '#000000',
  },
}
SCSS
$custom: #21115f;
$custom-light: #66518d;
$custom-dark: #000000;
JSON
{
  "hex": "#21115f",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 252.308,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26335,
    "c": 0.12765,
    "h": 282.6
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#21115F
secondary
#839834
accent
#EC3BC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21115F

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

Preview Lab → · Contrast checker → · Palette generator →

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