#21105D#21105D

#21105D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.126 H 283.4°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#21105D
RGBrgb(33, 16, 93)
HSLhsl(253, 71%, 21%)
HSVhsv(253, 83%, 36%)
CMYKcmyk(64.5%, 82.8%, 0%, 63.5%)
CIE-LABlab(12.51, 31.33, -42.55)
CIE-LCHlch(12.51, 52.84, 306.36°)
OKLaboklab(25.98% 0.0292 -0.1227)
OKLCHoklch(25.98% 0.126 283.4)
XYZxyz(2.7877, 1.4840, 10.4934)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21105D #4C5D10
analogous
#10265D #21105D #48105D
triadic
#21105D #5D2110 #105D21
tetradic
#21105D #5D1026 #4C5D10 #105D48
square
#21105D #5D1026 #4C5D10 #105D48
split-complementary
#21105D #5D4810 #265D10
monochromatic
#09041A #0E0729 #21105D #341991 #4622C5

Accessibility & contrast

On white

16.19
#21105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#21105D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21105D
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21105D#FFFFFF#000000##FFFFFF
##21105D1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21105d;
/* rgb */ color: rgb(33, 16, 93);
/* oklch */ color: oklch(26.0% 0.126 283.4);
Tailwind
colors: {
  custom: {
    50: '#65518c',
    500: '#21105d',
    950: '#000000',
  },
}
SCSS
$custom: #21105d;
$custom-light: #65518c;
$custom-dark: #000000;
JSON
{
  "hex": "#21105d",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 253.247,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25975,
    "c": 0.12609,
    "h": 283.4
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#21105D
secondary
#809633
accent
#ED3AC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21105D

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

Preview Lab → · Contrast checker → · Palette generator →

#21105D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva