#21115B#21115B

#21115B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.122 H 283.7°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#21115B
RGBrgb(33, 17, 91)
HSLhsl(253, 69%, 21%)
HSVhsv(253, 81%, 36%)
CMYKcmyk(63.7%, 81.3%, 0%, 64.3%)
CIE-LABlab(12.48, 30.11, -41.25)
CIE-LCHlch(12.48, 51.07, 306.12°)
OKLaboklab(25.89% 0.0291 -0.1189)
OKLCHoklch(25.89% 0.122 283.7)
XYZxyz(2.7154, 1.4794, 10.0380)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21115B #4B5B11
analogous
#11265B #21115B #46115B
triadic
#21115B #5B2111 #115B21
tetradic
#21115B #5B1126 #4B5B11 #115B46
square
#21115B #5B1126 #4B5B11 #115B46
split-complementary
#21115B #5B4611 #265B11
monochromatic
#09051A #0E0727 #21115B #341B8F #4624C2

Accessibility & contrast

On white

16.20
#21115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#21115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21115B
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21115B#FFFFFF#000000##FFFFFF
##21115B1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #21115b;
/* rgb */ color: rgb(33, 17, 91);
/* oklch */ color: oklch(25.9% 0.122 283.7);
Tailwind
colors: {
  custom: {
    50: '#65518a',
    500: '#21115b',
    950: '#000000',
  },
}
SCSS
$custom: #21115b;
$custom-light: #65518a;
$custom-dark: #000000;
JSON
{
  "hex": "#21115b",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 252.973,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25887,
    "c": 0.12239,
    "h": 283.7
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#21115B
secondary
#7F9434
accent
#EB3CC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21115B

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

Preview Lab → · Contrast checker → · Palette generator →

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