#21155B#21155B

#21155B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.118 H 282.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#21155B
RGBrgb(33, 21, 91)
HSLhsl(250, 63%, 22%)
HSVhsv(250, 77%, 36%)
CMYKcmyk(63.7%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.32, 27.73, -39.87)
CIE-LCHlch(13.32, 48.56, 304.82°)
OKLaboklab(26.48% 0.0258 -0.1149)
OKLCHoklch(26.48% 0.118 282.6)
XYZxyz(2.7831, 1.6148, 10.0605)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21155B #4F5B15
analogous
#152C5B #21155B #44155B
triadic
#21155B #5B2115 #155B21
tetradic
#21155B #5B152C #4F5B15 #155B44
square
#21155B #5B152C #4F5B15 #155B44
split-complementary
#21155B #5B4415 #2C5B15
monochromatic
#090619 #0F0A29 #21155B #33208D #452CBE

Accessibility & contrast

On white

15.87
#21155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21155B
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21155B#FFFFFF#000000##FFFFFF
##21155B1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21155b;
/* rgb */ color: rgb(33, 21, 91);
/* oklch */ color: oklch(26.5% 0.118 282.6);
Tailwind
colors: {
  custom: {
    50: '#64548a',
    500: '#21155b',
    950: '#000000',
  },
}
SCSS
$custom: #21155b;
$custom-light: #64548a;
$custom-dark: #000000;
JSON
{
  "hex": "#21155b",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 250.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26483,
    "c": 0.11771,
    "h": 282.6
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#21155B
secondary
#839239
accent
#E642CA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21155B

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

Preview Lab → · Contrast checker → · Palette generator →

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