#21135A#21135A

#21135A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.119 H 283.5°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#21135A
RGBrgb(33, 19, 90)
HSLhsl(252, 65%, 21%)
HSVhsv(252, 79%, 35%)
CMYKcmyk(63.3%, 78.9%, 0%, 64.7%)
CIE-LABlab(12.78, 28.61, -40.08)
CIE-LCHlch(12.78, 49.24, 305.52°)
OKLaboklab(26.07% 0.0277 -0.1155)
OKLCHoklch(26.07% 0.119 283.5)
XYZxyz(2.7050, 1.5271, 9.8231)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21135A #4C5A13
analogous
#13295A #21135A #45135A
triadic
#21135A #5A2113 #135A21
tetradic
#21135A #5A1329 #4C5A13 #135A45
square
#21135A #5A1329 #4C5A13 #135A45
split-complementary
#21135A #5A4513 #295A13
monochromatic
#090519 #0E0827 #21135A #341E8D #4628BF

Accessibility & contrast

On white

16.09
#21135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21135A
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21135A#FFFFFF#000000##FFFFFF
##21135A1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#012735
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21135a;
/* rgb */ color: rgb(33, 19, 90);
/* oklch */ color: oklch(26.1% 0.119 283.5);
Tailwind
colors: {
  custom: {
    50: '#645289',
    500: '#21135a',
    950: '#000000',
  },
}
SCSS
$custom: #21135a;
$custom-light: #645289;
$custom-dark: #000000;
JSON
{
  "hex": "#21135a",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 251.831,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26068,
    "c": 0.11876,
    "h": 283.5
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#21135A
secondary
#809237
accent
#E840C7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21135A

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

Preview Lab → · Contrast checker → · Palette generator →

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