#421E8B#421E8B

#421E8B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.166 H 290.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#421E8B
RGBrgb(66, 30, 139)
HSLhsl(260, 64%, 33%)
HSVhsv(260, 78%, 55%)
CMYKcmyk(52.5%, 78.4%, 0%, 45.5%)
CIE-LABlab(23.51, 42.92, -54.02)
CIE-LCHlch(23.51, 68.99, 308.47°)
OKLaboklab(35.99% 0.0583 -0.1552)
OKLCHoklch(35.99% 0.166 290.6)
XYZxyz(7.3699, 3.9506, 24.7953)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421E8B #678B1E
analogous
#1E308B #421E8B #781E8B
triadic
#421E8B #8B421E #1E8B42
tetradic
#421E8B #8B1E30 #678B1E #1E8B78
square
#421E8B #8B1E30 #678B1E #1E8B78
split-complementary
#421E8B #8B781E #308B1E
monochromatic
#120826 #2A1359 #421E8B #5A29BD #7A4BD8

Accessibility & contrast

On white

11.73
#421E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421E8B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421E8B#FFFFFF#000000##FFFFFF
##421E8B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#283C54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421e8b;
/* rgb */ color: rgb(66, 30, 139);
/* oklch */ color: oklch(36.0% 0.166 290.6);
Tailwind
colors: {
  custom: {
    50: '#7f5eae',
    500: '#421e8b',
    950: '#000000',
  },
}
SCSS
$custom: #421e8b;
$custom-light: #7f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#421e8b",
  "rgb": {
    "r": 66,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 259.817,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.16578,
    "h": 290.6
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#421E8B
secondary
#95BB4A
accent
#E740B0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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