#21135C#21135C

#21135C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.3% C 0.121 H 282.9°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#21135C
RGBrgb(33, 19, 92)
HSLhsl(252, 66%, 22%)
HSVhsv(252, 79%, 36%)
CMYKcmyk(64.1%, 79.3%, 0%, 63.9%)
CIE-LABlab(12.99, 29.28, -41.07)
CIE-LCHlch(12.99, 50.44, 305.49°)
OKLaboklab(26.28% 0.0272 -0.1184)
OKLCHoklch(26.28% 0.121 282.9)
XYZxyz(2.7912, 1.5616, 10.2775)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21135C #4E5C13
analogous
#132A5C #21135C #46135C
triadic
#21135C #5C2113 #135C21
tetradic
#21135C #5C132A #4E5C13 #135C46
square
#21135C #5C132A #4E5C13 #135C46
split-complementary
#21135C #5C4613 #2A5C13
monochromatic
#090519 #0F0929 #21135C #331D8F #4528C1

Accessibility & contrast

On white

16.00
#21135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21135C
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21135C#FFFFFF#000000##FFFFFF
##21135C1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21135c;
/* rgb */ color: rgb(33, 19, 92);
/* oklch */ color: oklch(26.3% 0.121 282.9);
Tailwind
colors: {
  custom: {
    50: '#65528b',
    500: '#21135c',
    950: '#000000',
  },
}
SCSS
$custom: #21135c;
$custom-light: #65528b;
$custom-dark: #000000;
JSON
{
  "hex": "#21135c",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 251.507,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26285,
    "c": 0.12146,
    "h": 282.9
  },
  "luminance": 0.01562
}

Semantic roles & 50–950 ramp

primary
#21135C
secondary
#829437
accent
#E93FC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21135C

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

Preview Lab → · Contrast checker → · Palette generator →

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