#21116A#21116A

#21116A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.142 H 279.9°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#21116A
RGBrgb(33, 17, 106)
HSLhsl(251, 72%, 24%)
HSVhsv(251, 84%, 42%)
CMYKcmyk(68.9%, 84%, 0%, 58.4%)
CIE-LABlab(14.20, 35.03, -48.38)
CIE-LCHlch(14.20, 59.73, 305.91°)
OKLaboklab(27.6% 0.0244 -0.1397)
OKLCHoklch(27.6% 0.142 279.9)
XYZxyz(3.4283, 1.7646, 13.7928)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21116A #5A6A11
analogous
#112D6A #21116A #4E116A
triadic
#21116A #6A2111 #116A21
tetradic
#21116A #6A112D #5A6A11 #116A4E
square
#21116A #6A112D #5A6A11 #116A4E
split-complementary
#21116A #6A4E11 #2D6A11
monochromatic
#08041A #110935 #21116A #31199F #4222D3

Accessibility & contrast

On white

15.52
#21116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#21116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21116A
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21116A#FFFFFF#000000##FFFFFF
##21116A1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002168
Tritanopia (blue-blind)
#002C3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21116a;
/* rgb */ color: rgb(33, 17, 106);
/* oklch */ color: oklch(27.6% 0.142 279.9);
Tailwind
colors: {
  custom: {
    50: '#685296',
    500: '#21116a',
    950: '#000000',
  },
}
SCSS
$custom: #21116a;
$custom-light: #685296;
$custom-dark: #000000;
JSON
{
  "hex": "#21116a",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 250.787,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.27604,
    "c": 0.14177,
    "h": 279.9
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#21116A
secondary
#8EA235
accent
#EF39CE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #21116A

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

Preview Lab → · Contrast checker → · Palette generator →

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