#21106C#21106C

#21106C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.145 H 279.6°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#21106C
RGBrgb(33, 16, 108)
HSLhsl(251, 74%, 24%)
HSVhsv(251, 85%, 42%)
CMYKcmyk(69.4%, 85.2%, 0%, 57.6%)
CIE-LABlab(14.27, 36.18, -49.58)
CIE-LCHlch(14.27, 61.37, 306.12°)
OKLaboklab(27.72% 0.0243 -0.1431)
OKLCHoklch(27.72% 0.145 279.6)
XYZxyz(3.5184, 1.7763, 14.3419)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21106C #5B6C10
analogous
#102D6C #21106C #4F106C
triadic
#21106C #6C2110 #106C21
tetradic
#21106C #6C102D #5B6C10 #106C4F
square
#21106C #6C102D #5B6C10 #106C4F
split-complementary
#21106C #6C4F10 #2D6C10
monochromatic
#08041B #110837 #21106C #3118A1 #4220D7

Accessibility & contrast

On white

15.49
#21106C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21106C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21106C#FFFFFF#000000##FFFFFF
##21106C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276F
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21106c;
/* rgb */ color: rgb(33, 16, 108);
/* oklch */ color: oklch(27.7% 0.145 279.6);
Tailwind
colors: {
  custom: {
    50: '#695297',
    500: '#21106c',
    950: '#000000',
  },
}
SCSS
$custom: #21106c;
$custom-light: #695297;
$custom-dark: #000000;
JSON
{
  "hex": "#21106c",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 108
  },
  "hsl": {
    "h": 251.087,
    "s": 74.194,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27721,
    "c": 0.14518,
    "h": 279.6
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#21106C
secondary
#8FA434
accent
#F137CE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21106C

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

Preview Lab → · Contrast checker → · Palette generator →

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