#21135B#21135B

#21135B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.120 H 283.2°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#21135B
RGBrgb(33, 19, 91)
HSLhsl(252, 65%, 22%)
HSVhsv(252, 79%, 36%)
CMYKcmyk(63.7%, 79.1%, 0%, 64.3%)
CIE-LABlab(12.89, 28.95, -40.58)
CIE-LCHlch(12.89, 49.84, 305.50°)
OKLaboklab(26.18% 0.0275 -0.1169)
OKLCHoklch(26.18% 0.12 283.2)
XYZxyz(2.7478, 1.5442, 10.0488)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21135B #4D5B13
analogous
#13295B #21135B #45135B
triadic
#21135B #5B2113 #135B21
tetradic
#21135B #5B1329 #4D5B13 #135B45
square
#21135B #5B1329 #4D5B13 #135B45
split-complementary
#21135B #5B4513 #295B13
monochromatic
#090519 #0F0828 #21135B #331E8E #4628C0

Accessibility & contrast

On white

16.05
#21135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#21135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21135B
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21135B#FFFFFF#000000##FFFFFF
##21135B1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21135b;
/* rgb */ color: rgb(33, 19, 91);
/* oklch */ color: oklch(26.2% 0.120 283.2);
Tailwind
colors: {
  custom: {
    50: '#65528a',
    500: '#21135b',
    950: '#000000',
  },
}
SCSS
$custom: #21135b;
$custom-light: #65528a;
$custom-dark: #000000;
JSON
{
  "hex": "#21135b",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 251.667,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26176,
    "c": 0.12011,
    "h": 283.2
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#21135B
secondary
#819337
accent
#E83FC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21135B

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

Preview Lab → · Contrast checker → · Palette generator →

#21135B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva