#21155A#21155A

#21155A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.116 H 282.9°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#21155A
RGBrgb(33, 21, 90)
HSLhsl(250, 62%, 22%)
HSVhsv(250, 77%, 35%)
CMYKcmyk(63.3%, 76.7%, 0%, 64.7%)
CIE-LABlab(13.22, 27.39, -39.36)
CIE-LCHlch(13.22, 47.95, 304.83°)
OKLaboklab(26.38% 0.026 -0.1134)
OKLCHoklch(26.38% 0.116 282.9)
XYZxyz(2.7403, 1.5977, 9.8349)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21155A #4E5A15
analogous
#152C5A #21155A #44155A
triadic
#21155A #5A2115 #155A21
tetradic
#21155A #5A152C #4E5A15 #155A44
square
#21155A #5A152C #4E5A15 #155A44
split-complementary
#21155A #5A4415 #2C5A15
monochromatic
#090619 #0F0928 #21155A #33218C #452CBD

Accessibility & contrast

On white

15.91
#21155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21155A
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21155A#FFFFFF#000000##FFFFFF
##21155A1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#012836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21155a;
/* rgb */ color: rgb(33, 21, 90);
/* oklch */ color: oklch(26.4% 0.116 282.9);
Tailwind
colors: {
  custom: {
    50: '#645489',
    500: '#21155a',
    950: '#000000',
  },
}
SCSS
$custom: #21155a;
$custom-light: #645489;
$custom-dark: #000000;
JSON
{
  "hex": "#21155a",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 250.435,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26378,
    "c": 0.11633,
    "h": 282.9
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#21155A
secondary
#829239
accent
#E543C9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21155A

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

Preview Lab → · Contrast checker → · Palette generator →

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