#21106D#21106D

#21106D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.146 H 279.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#21106D
RGBrgb(33, 16, 109)
HSLhsl(251, 74%, 25%)
HSVhsv(251, 85%, 43%)
CMYKcmyk(69.7%, 85.3%, 0%, 57.3%)
CIE-LABlab(14.39, 36.50, -50.03)
CIE-LCHlch(14.39, 61.93, 306.11°)
OKLaboklab(27.84% 0.0239 -0.1445)
OKLCHoklch(27.84% 0.146 279.4)
XYZxyz(3.5719, 1.7977, 14.6238)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21106D #5C6D10
analogous
#102D6D #21106D #50106D
triadic
#21106D #6D2110 #106D21
tetradic
#21106D #6D102D #5C6D10 #106D50
square
#21106D #6D102D #5C6D10 #106D50
split-complementary
#21106D #6D5010 #2D6D10
monochromatic
#08041B #110838 #21106D #3118A2 #4120D8

Accessibility & contrast

On white

15.45
#21106D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#21106D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21106D
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21106D#FFFFFF#000000##FFFFFF
##21106D1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21106d;
/* rgb */ color: rgb(33, 16, 109);
/* oklch */ color: oklch(27.8% 0.146 279.4);
Tailwind
colors: {
  custom: {
    50: '#695298',
    500: '#21106d',
    950: '#000000',
  },
}
SCSS
$custom: #21106d;
$custom-light: #695298;
$custom-dark: #000000;
JSON
{
  "hex": "#21106d",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 109
  },
  "hsl": {
    "h": 250.968,
    "s": 74.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2784,
    "c": 0.14643,
    "h": 279.4
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#21106D
secondary
#90A534
accent
#F137CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21106D

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

Preview Lab → · Contrast checker → · Palette generator →

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