#421D8B#421D8B

#421D8B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.167 H 290.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#421D8B
RGBrgb(66, 29, 139)
HSLhsl(260, 65%, 33%)
HSVhsv(260, 79%, 55%)
CMYKcmyk(52.5%, 79.1%, 0%, 45.5%)
CIE-LABlab(23.34, 43.40, -54.29)
CIE-LCHlch(23.34, 69.50, 308.64°)
OKLaboklab(35.88% 0.0591 -0.156)
OKLCHoklch(35.88% 0.167 290.7)
XYZxyz(7.3450, 3.9008, 24.7870)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D8B #668B1D
analogous
#1D2F8B #421D8B #791D8B
triadic
#421D8B #8B421D #1D8B42
tetradic
#421D8B #8B1D2F #668B1D #1D8B79
square
#421D8B #8B1D2F #668B1D #1D8B79
split-complementary
#421D8B #8B791D #2F8B1D
monochromatic
#120826 #2A1258 #421D8B #5A28BE #7A49D9

Accessibility & contrast

On white

11.80
#421D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#421D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D8B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D8B#FFFFFF#000000##FFFFFF
##421D8B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#283C53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421d8b;
/* rgb */ color: rgb(66, 29, 139);
/* oklch */ color: oklch(35.9% 0.167 290.7);
Tailwind
colors: {
  custom: {
    50: '#7f5eae',
    500: '#421d8b',
    950: '#000000',
  },
}
SCSS
$custom: #421d8b;
$custom-light: #7f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#421d8b",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 260.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35877,
    "c": 0.1668,
    "h": 290.7
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#421D8B
secondary
#95BB49
accent
#E83FB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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