#21116F#21116F

#21116F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.148 H 278.8°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#21116F
RGBrgb(33, 17, 111)
HSLhsl(250, 73%, 25%)
HSVhsv(250, 85%, 44%)
CMYKcmyk(70.3%, 84.7%, 0%, 56.5%)
CIE-LABlab(14.80, 36.64, -50.66)
CIE-LCHlch(14.80, 62.52, 305.88°)
OKLaboklab(28.19% 0.0228 -0.1463)
OKLCHoklch(28.19% 0.148 278.8)
XYZxyz(3.6960, 1.8716, 15.2023)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21116F #5F6F11
analogous
#11306F #21116F #50116F
triadic
#21116F #6F2111 #116F21
tetradic
#21116F #6F1130 #5F6F11 #116F50
square
#21116F #6F1130 #5F6F11 #116F50
split-complementary
#21116F #6F5011 #306F11
monochromatic
#08041B #11093A #21116F #3119A4 #4121D9

Accessibility & contrast

On white

15.28
#21116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21116F
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21116F#FFFFFF#000000##FFFFFF
##21116F1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21116f;
/* rgb */ color: rgb(33, 17, 111);
/* oklch */ color: oklch(28.2% 0.148 278.8);
Tailwind
colors: {
  custom: {
    50: '#6a5399',
    500: '#21116f',
    950: '#000000',
  },
}
SCSS
$custom: #21116f;
$custom-light: #6a5399;
$custom-dark: #000000;
JSON
{
  "hex": "#21116f",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 250.213,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28195,
    "c": 0.14805,
    "h": 278.8
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#21116F
secondary
#93A635
accent
#F038D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21116F

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

Preview Lab → · Contrast checker → · Palette generator →

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