#21116D#21116D

#21116D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.146 H 279.3°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#21116D
RGBrgb(33, 17, 109)
HSLhsl(250, 73%, 25%)
HSVhsv(250, 84%, 43%)
CMYKcmyk(69.7%, 84.4%, 0%, 57.3%)
CIE-LABlab(14.56, 36.00, -49.75)
CIE-LCHlch(14.56, 61.41, 305.89°)
OKLaboklab(27.96% 0.0234 -0.1437)
OKLCHoklch(27.96% 0.146 279.3)
XYZxyz(3.5871, 1.8281, 14.6289)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21116D #5D6D11
analogous
#112F6D #21116D #4F116D
triadic
#21116D #6D2111 #116D21
tetradic
#21116D #6D112F #5D6D11 #116D4F
square
#21116D #6D112F #5D6D11 #116D4F
split-complementary
#21116D #6D4F11 #2F6D11
monochromatic
#08041A #110938 #21116D #3119A2 #4122D7

Accessibility & contrast

On white

15.38
#21116D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#21116D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21116D
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21116D#FFFFFF#000000##FFFFFF
##21116D1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21116d;
/* rgb */ color: rgb(33, 17, 109);
/* oklch */ color: oklch(28.0% 0.146 279.3);
Tailwind
colors: {
  custom: {
    50: '#695298',
    500: '#21116d',
    950: '#000000',
  },
}
SCSS
$custom: #21116d;
$custom-light: #695298;
$custom-dark: #000000;
JSON
{
  "hex": "#21116d",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 109
  },
  "hsl": {
    "h": 250.435,
    "s": 73.016,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27958,
    "c": 0.14555,
    "h": 279.3
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#21116D
secondary
#91A535
accent
#F038D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21116D

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

Preview Lab → · Contrast checker → · Palette generator →

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