#21155D#21155D

#21155D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.7% C 0.120 H 282.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#21155D
RGBrgb(33, 21, 93)
HSLhsl(250, 63%, 22%)
HSVhsv(250, 77%, 36%)
CMYKcmyk(64.5%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.53, 28.42, -40.86)
CIE-LCHlch(13.53, 49.77, 304.82°)
OKLaboklab(26.7% 0.0253 -0.1178)
OKLCHoklch(26.7% 0.12 282.1)
XYZxyz(2.8705, 1.6498, 10.5210)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21155D #515D15
analogous
#152D5D #21155D #45155D
triadic
#21155D #5D2115 #155D21
tetradic
#21155D #5D152D #515D15 #155D45
square
#21155D #5D152D #515D15 #155D45
split-complementary
#21155D #5D4515 #2D5D15
monochromatic
#090619 #0F0A2B #21155D #33208F #442CC1

Accessibility & contrast

On white

15.79
#21155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#21155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21155D
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21155D#FFFFFF#000000##FFFFFF
##21155D1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21155d;
/* rgb */ color: rgb(33, 21, 93);
/* oklch */ color: oklch(26.7% 0.120 282.1);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#21155d',
    950: '#000000',
  },
}
SCSS
$custom: #21155d;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#21155d",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 250,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26697,
    "c": 0.12047,
    "h": 282.1
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#21155D
secondary
#859439
accent
#E642CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21155D

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

Preview Lab → · Contrast checker → · Palette generator →

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