#421B8B#421B8B

#421B8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.169 H 291.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#421B8B
RGBrgb(66, 27, 139)
HSLhsl(261, 67%, 33%)
HSVhsv(261, 81%, 55%)
CMYKcmyk(52.5%, 80.6%, 0%, 45.5%)
CIE-LABlab(23.02, 44.33, -54.82)
CIE-LCHlch(23.02, 70.50, 308.96°)
OKLaboklab(35.65% 0.0606 -0.1575)
OKLCHoklch(35.65% 0.169 291)
XYZxyz(7.2976, 3.8059, 24.7712)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B8B #648B1B
analogous
#1B2C8B #421B8B #7A1B8B
triadic
#421B8B #8B421B #1B8B42
tetradic
#421B8B #8B1B2C #648B1B #1B8B7A
square
#421B8B #8B1B2C #648B1B #1B8B7A
split-complementary
#421B8B #8B7A1B #2C8B1B
monochromatic
#110725 #2A1158 #421B8B #5A25BE #7A45DB

Accessibility & contrast

On white

11.92
#421B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#421B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B8B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B8B#FFFFFF#000000##FFFFFF
##421B8B1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#283B53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #421b8b;
/* rgb */ color: rgb(66, 27, 139);
/* oklch */ color: oklch(35.7% 0.169 291.0);
Tailwind
colors: {
  custom: {
    50: '#7f5dae',
    500: '#421b8b',
    950: '#000000',
  },
}
SCSS
$custom: #421b8b;
$custom-light: #7f5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#421b8b",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 260.893,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35653,
    "c": 0.16878,
    "h": 291
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#421B8B
secondary
#93BC45
accent
#EA3DAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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