#21135D#21135D

#21135D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.123 H 282.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#21135D
RGBrgb(33, 19, 93)
HSLhsl(251, 66%, 22%)
HSVhsv(251, 80%, 36%)
CMYKcmyk(64.5%, 79.6%, 0%, 63.5%)
CIE-LABlab(13.10, 29.62, -41.56)
CIE-LCHlch(13.10, 51.04, 305.48°)
OKLaboklab(26.39% 0.0269 -0.1198)
OKLCHoklch(26.39% 0.123 282.7)
XYZxyz(2.8352, 1.5792, 10.5092)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21135D #4F5D13
analogous
#132A5D #21135D #46135D
triadic
#21135D #5D2113 #135D21
tetradic
#21135D #5D132A #4F5D13 #135D46
square
#21135D #5D132A #4F5D13 #135D46
split-complementary
#21135D #5D4613 #2A5D13
monochromatic
#090519 #0F092A #21135D #331D90 #4528C3

Accessibility & contrast

On white

15.96
#21135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21135D
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21135D#FFFFFF#000000##FFFFFF
##21135D1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21135d;
/* rgb */ color: rgb(33, 19, 93);
/* oklch */ color: oklch(26.4% 0.123 282.7);
Tailwind
colors: {
  custom: {
    50: '#65528c',
    500: '#21135d',
    950: '#000000',
  },
}
SCSS
$custom: #21135d;
$custom-light: #65528c;
$custom-dark: #000000;
JSON
{
  "hex": "#21135d",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 251.351,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26394,
    "c": 0.12281,
    "h": 282.7
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#21135D
secondary
#839537
accent
#E93FC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21135D

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

Preview Lab → · Contrast checker → · Palette generator →

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