#21104B#21104B

#21104B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.102 H 289.7°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#21104B
RGBrgb(33, 16, 75)
HSLhsl(257, 65%, 18%)
HSVhsv(257, 79%, 29%)
CMYKcmyk(56%, 78.7%, 0%, 70.6%)
CIE-LABlab(10.57, 25.37, -33.45)
CIE-LCHlch(10.57, 41.99, 307.18°)
OKLaboklab(24.03% 0.0343 -0.096)
OKLCHoklch(24.03% 0.102 289.7)
XYZxyz(2.0821, 1.2018, 6.7775)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21104B #3A4B10
analogous
#101C4B #21104B #3E104B
triadic
#21104B #4B2110 #104B21
tetradic
#21104B #4B101C #3A4B10 #104B3E
square
#21104B #4B101C #3A4B10 #104B3E
split-complementary
#21104B #4B3E10 #1C4B10
monochromatic
#0B0519 #0B0519 #21104B #371B7D #4D26B0

Accessibility & contrast

On white

16.93
#21104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21104B
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21104B#FFFFFF#000000##FFFFFF
##21104B1.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#121F2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21104b;
/* rgb */ color: rgb(33, 16, 75);
/* oklch */ color: oklch(24.0% 0.102 289.7);
Tailwind
colors: {
  custom: {
    50: '#62507e',
    500: '#21104b',
    950: '#000000',
  },
}
SCSS
$custom: #21104b;
$custom-light: #62507e;
$custom-dark: #000000;
JSON
{
  "hex": "#21104b",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 257.288,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24025,
    "c": 0.10198,
    "h": 289.7
  },
  "luminance": 0.01202
}

Semantic roles & 50–950 ramp

primary
#21104B
secondary
#6D8532
accent
#E840B7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21104B

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

Preview Lab → · Contrast checker → · Palette generator →

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