#21106F#21106F

#21106F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.1% C 0.149 H 279.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#21106F
RGBrgb(33, 16, 111)
HSLhsl(251, 75%, 25%)
HSVhsv(251, 86%, 44%)
CMYKcmyk(70.3%, 85.6%, 0%, 56.5%)
CIE-LABlab(14.63, 37.13, -50.93)
CIE-LCHlch(14.63, 63.03, 306.09°)
OKLaboklab(28.08% 0.0232 -0.1471)
OKLCHoklch(28.08% 0.149 279)
XYZxyz(3.6808, 1.8413, 15.1973)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21106F #5E6F10
analogous
#102E6F #21106F #51106F
triadic
#21106F #6F2110 #106F21
tetradic
#21106F #6F102E #5E6F10 #106F51
square
#21106F #6F102E #5E6F10 #106F51
split-complementary
#21106F #6F5110 #2E6F10
monochromatic
#08041B #11083A #21106F #3118A4 #411FDA

Accessibility & contrast

On white

15.35
#21106F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#21106F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21106F
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21106F#FFFFFF#000000##FFFFFF
##21106F1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002872
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21106f;
/* rgb */ color: rgb(33, 16, 111);
/* oklch */ color: oklch(28.1% 0.149 279.0);
Tailwind
colors: {
  custom: {
    50: '#6a5299',
    500: '#21106f',
    950: '#000000',
  },
}
SCSS
$custom: #21106f;
$custom-light: #6a5299;
$custom-dark: #000000;
JSON
{
  "hex": "#21106f",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 111
  },
  "hsl": {
    "h": 250.737,
    "s": 74.803,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28079,
    "c": 0.1489,
    "h": 279
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#21106F
secondary
#92A734
accent
#F136D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21106F

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

Preview Lab → · Contrast checker → · Palette generator →

#21106F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva