#21104C#21104C

#21104C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.103 H 289.2°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#21104C
RGBrgb(33, 16, 76)
HSLhsl(257, 65%, 18%)
HSVhsv(257, 79%, 30%)
CMYKcmyk(56.6%, 78.9%, 0%, 70.2%)
CIE-LABlab(10.67, 25.71, -33.98)
CIE-LCHlch(10.67, 42.61, 307.11°)
OKLaboklab(24.13% 0.0341 -0.0976)
OKLCHoklch(24.13% 0.103 289.2)
XYZxyz(2.1166, 1.2156, 6.9592)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21104C #3B4C10
analogous
#101D4C #21104C #3F104C
triadic
#21104C #4C2110 #104C21
tetradic
#21104C #4C101D #3B4C10 #104C3F
square
#21104C #4C101D #3B4C10 #104C3F
split-complementary
#21104C #4C3F10 #1D4C10
monochromatic
#0B0519 #0B0519 #21104C #371B7F #4D25B1

Accessibility & contrast

On white

16.89
#21104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#21104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21104C
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21104C#FFFFFF#000000##FFFFFF
##21104C1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#11202C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21104c;
/* rgb */ color: rgb(33, 16, 76);
/* oklch */ color: oklch(24.1% 0.103 289.2);
Tailwind
colors: {
  custom: {
    50: '#62507f',
    500: '#21104c',
    950: '#000000',
  },
}
SCSS
$custom: #21104c;
$custom-light: #62507f;
$custom-dark: #000000;
JSON
{
  "hex": "#21104c",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 257,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24128,
    "c": 0.10336,
    "h": 289.2
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#21104C
secondary
#6E8632
accent
#E840B8
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21104C

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

Preview Lab → · Contrast checker → · Palette generator →

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