#21115A#21115A

#21115A is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.8% C 0.121 H 284.0°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#21115A
RGBrgb(33, 17, 90)
HSLhsl(253, 68%, 21%)
HSVhsv(253, 81%, 35%)
CMYKcmyk(63.3%, 81.1%, 0%, 64.7%)
CIE-LABlab(12.37, 29.78, -40.76)
CIE-LCHlch(12.37, 50.48, 306.15°)
OKLaboklab(25.78% 0.0294 -0.1174)
OKLCHoklch(25.78% 0.121 284)
XYZxyz(2.6725, 1.4622, 9.8123)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21115A #4A5A11
analogous
#11255A #21115A #45115A
triadic
#21115A #5A2111 #115A21
tetradic
#21115A #5A1125 #4A5A11 #115A45
square
#21115A #5A1125 #4A5A11 #115A45
split-complementary
#21115A #5A4511 #255A11
monochromatic
#09051A #0E0727 #21115A #341B8D #4724C1

Accessibility & contrast

On white

16.25
#21115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#21115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21115A
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21115A#FFFFFF#000000##FFFFFF
##21115A1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#012635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #21115a;
/* rgb */ color: rgb(33, 17, 90);
/* oklch */ color: oklch(25.8% 0.121 284.0);
Tailwind
colors: {
  custom: {
    50: '#655189',
    500: '#21115a',
    950: '#000000',
  },
}
SCSS
$custom: #21115a;
$custom-light: #655189;
$custom-dark: #000000;
JSON
{
  "hex": "#21115a",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 253.151,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25776,
    "c": 0.12106,
    "h": 284
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#21115A
secondary
#7E9334
accent
#EB3DC5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21115A

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

Preview Lab → · Contrast checker → · Palette generator →

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