#21116B#21116B

#21116B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.143 H 279.7°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#21116B
RGBrgb(33, 17, 107)
HSLhsl(251, 73%, 24%)
HSVhsv(251, 84%, 42%)
CMYKcmyk(69.2%, 84.1%, 0%, 58%)
CIE-LABlab(14.32, 35.35, -48.84)
CIE-LCHlch(14.32, 60.29, 305.90°)
OKLaboklab(27.72% 0.024 -0.141)
OKLCHoklch(27.72% 0.143 279.7)
XYZxyz(3.4806, 1.7855, 14.0683)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21116B #5B6B11
analogous
#112E6B #21116B #4E116B
triadic
#21116B #6B2111 #116B21
tetradic
#21116B #6B112E #5B6B11 #116B4E
square
#21116B #6B112E #5B6B11 #116B4E
split-complementary
#21116B #6B4E11 #2E6B11
monochromatic
#08041A #110936 #21116B #3119A0 #4222D5

Accessibility & contrast

On white

15.47
#21116B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21116B
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21116B#FFFFFF#000000##FFFFFF
##21116B1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276D
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21116b;
/* rgb */ color: rgb(33, 17, 107);
/* oklch */ color: oklch(27.7% 0.143 279.7);
Tailwind
colors: {
  custom: {
    50: '#695296',
    500: '#21116b',
    950: '#000000',
  },
}
SCSS
$custom: #21116b;
$custom-light: #695296;
$custom-dark: #000000;
JSON
{
  "hex": "#21116b",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 107
  },
  "hsl": {
    "h": 250.667,
    "s": 72.581,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27721,
    "c": 0.14304,
    "h": 279.7
  },
  "luminance": 0.01786
}

Semantic roles & 50–950 ramp

primary
#21116B
secondary
#8FA335
accent
#EF39CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #21116B

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

Preview Lab → · Contrast checker → · Palette generator →

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