#21116C#21116C

#21116C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.144 H 279.5°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#21116C
RGBrgb(33, 17, 108)
HSLhsl(251, 73%, 25%)
HSVhsv(251, 84%, 42%)
CMYKcmyk(69.4%, 84.3%, 0%, 57.6%)
CIE-LABlab(14.44, 35.68, -49.29)
CIE-LCHlch(14.44, 60.85, 305.90°)
OKLaboklab(27.84% 0.0237 -0.1423)
OKLCHoklch(27.84% 0.144 279.5)
XYZxyz(3.5336, 1.8066, 14.3470)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21116C #5C6C11
analogous
#112F6C #21116C #4E116C
triadic
#21116C #6C2111 #116C21
tetradic
#21116C #6C112F #5C6C11 #116C4E
square
#21116C #6C112F #5C6C11 #116C4E
split-complementary
#21116C #6C4E11 #2F6C11
monochromatic
#08041A #110937 #21116C #3119A1 #4122D6

Accessibility & contrast

On white

15.43
#21116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#21116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21116C
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21116C#FFFFFF#000000##FFFFFF
##21116C1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21116c;
/* rgb */ color: rgb(33, 17, 108);
/* oklch */ color: oklch(27.8% 0.144 279.5);
Tailwind
colors: {
  custom: {
    50: '#695297',
    500: '#21116c',
    950: '#000000',
  },
}
SCSS
$custom: #21116c;
$custom-light: #695297;
$custom-dark: #000000;
JSON
{
  "hex": "#21116c",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 250.549,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27839,
    "c": 0.14429,
    "h": 279.5
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#21116C
secondary
#90A435
accent
#EF38CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21116C

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

Preview Lab → · Contrast checker → · Palette generator →

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