#421B8D#421B8D

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

Color values

HEX#421B8D
RGBrgb(66, 27, 141)
HSLhsl(261, 68%, 33%)
HSVhsv(261, 81%, 55%)
CMYKcmyk(53.2%, 80.9%, 0%, 44.7%)
CIE-LABlab(23.22, 44.88, -55.74)
CIE-LCHlch(23.22, 71.56, 308.84°)
OKLaboklab(35.85% 0.0599 -0.1602)
OKLCHoklch(35.85% 0.171 290.5)
XYZxyz(7.4450, 3.8649, 25.5478)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B8D #668D1B
analogous
#1B2D8D #421B8D #7B1B8D
triadic
#421B8D #8D421B #1B8D42
tetradic
#421B8D #8D1B2D #668D1B #1B8D7B
square
#421B8D #8D1B2D #668D1B #1B8D7B
split-complementary
#421B8D #8D7B1B #2D8D1B
monochromatic
#120726 #2A115A #421B8D #5A25C0 #7A47DC

Accessibility & contrast

On white

11.84
#421B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#421B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B8D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B8D#FFFFFF#000000##FFFFFF
##421B8D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#273C54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #421b8d;
/* rgb */ color: rgb(66, 27, 141);
/* oklch */ color: oklch(35.9% 0.171 290.5);
Tailwind
colors: {
  custom: {
    50: '#7f5daf',
    500: '#421b8d',
    950: '#000000',
  },
}
SCSS
$custom: #421b8d;
$custom-light: #7f5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#421b8d",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 260.526,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35853,
    "c": 0.17105,
    "h": 290.5
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#421B8D
secondary
#95BD46
accent
#EB3DAF
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #421B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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