#421D8D#421D8D

#421D8D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.169 H 290.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#421D8D
RGBrgb(66, 29, 141)
HSLhsl(260, 66%, 33%)
HSVhsv(260, 79%, 55%)
CMYKcmyk(53.2%, 79.4%, 0%, 44.7%)
CIE-LABlab(23.54, 43.97, -55.21)
CIE-LCHlch(23.54, 70.58, 308.53°)
OKLaboklab(36.08% 0.0584 -0.1587)
OKLCHoklch(36.08% 0.169 290.2)
XYZxyz(7.4925, 3.9597, 25.5637)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D8D #688D1D
analogous
#1D308D #421D8D #7A1D8D
triadic
#421D8D #8D421D #1D8D42
tetradic
#421D8D #8D1D30 #688D1D #1D8D7A
square
#421D8D #8D1D30 #688D1D #1D8D7A
split-complementary
#421D8D #8D7A1D #308D1D
monochromatic
#120827 #2A135A #421D8D #5A27C0 #7A4BDA

Accessibility & contrast

On white

11.72
#421D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#421D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D8D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D8D#FFFFFF#000000##FFFFFF
##421D8D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#273D54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421d8d;
/* rgb */ color: rgb(66, 29, 141);
/* oklch */ color: oklch(36.1% 0.169 290.2);
Tailwind
colors: {
  custom: {
    50: '#7f5eaf',
    500: '#421d8d',
    950: '#000000',
  },
}
SCSS
$custom: #421d8d;
$custom-light: #7f5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#421d8d",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 259.821,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.16911,
    "h": 290.2
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#421D8D
secondary
#96BC4A
accent
#E93FB1
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421D8D

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

Preview Lab → · Contrast checker → · Palette generator →

#421D8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva