#21104E#21104E

#21104E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.106 H 288.4°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#21104E
RGBrgb(33, 16, 78)
HSLhsl(256, 66%, 18%)
HSVhsv(256, 79%, 31%)
CMYKcmyk(57.7%, 79.5%, 0%, 69.4%)
CIE-LABlab(10.88, 26.37, -35.02)
CIE-LCHlch(10.88, 43.84, 306.97°)
OKLaboklab(24.34% 0.0336 -0.1006)
OKLCHoklch(24.34% 0.106 288.4)
XYZxyz(2.1872, 1.2439, 7.3311)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21104E #3D4E10
analogous
#101E4E #21104E #40104E
triadic
#21104E #4E2110 #104E21
tetradic
#21104E #4E101E #3D4E10 #104E40
square
#21104E #4E101E #3D4E10 #104E40
split-complementary
#21104E #4E4010 #1E4E10
monochromatic
#0B0519 #0C061B #21104E #361A81 #4C25B4

Accessibility & contrast

On white

16.82
#21104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#21104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21104E
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21104E#FFFFFF#000000##FFFFFF
##21104E1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#10212E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #21104e;
/* rgb */ color: rgb(33, 16, 78);
/* oklch */ color: oklch(24.3% 0.106 288.4);
Tailwind
colors: {
  custom: {
    50: '#625080',
    500: '#21104e',
    950: '#000000',
  },
}
SCSS
$custom: #21104e;
$custom-light: #625080;
$custom-dark: #000000;
JSON
{
  "hex": "#21104e",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 256.452,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24336,
    "c": 0.10609,
    "h": 288.4
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#21104E
secondary
#708832
accent
#E93FBA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21104E

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

Preview Lab → · Contrast checker → · Palette generator →

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