#421F81#421F81

#421F81 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.153 H 293.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#421F81
RGBrgb(66, 31, 129)
HSLhsl(261, 61%, 31%)
HSVhsv(261, 76%, 51%)
CMYKcmyk(48.8%, 76%, 0%, 49.4%)
CIE-LABlab(22.73, 39.57, -49.01)
CIE-LCHlch(22.73, 62.99, 308.92°)
OKLaboklab(35.16% 0.0601 -0.1405)
OKLCHoklch(35.16% 0.153 293.2)
XYZxyz(6.6981, 3.7230, 21.1303)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F81 #5E811F
analogous
#1F2D81 #421F81 #731F81
triadic
#421F81 #81421F #1F8142
tetradic
#421F81 #811F2D #5E811F #1F8173
square
#421F81 #811F2D #5E811F #1F8173
split-complementary
#421F81 #81731F #2D811F
monochromatic
#10071E #291350 #421F81 #5B2BB2 #7947D3

Accessibility & contrast

On white

12.04
#421F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#421F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F81
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F81#FFFFFF#000000##FFFFFF
##421F811.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#2F394E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #421f81;
/* rgb */ color: rgb(66, 31, 129);
/* oklch */ color: oklch(35.2% 0.153 293.2);
Tailwind
colors: {
  custom: {
    50: '#7d5ea6',
    500: '#421f81',
    950: '#000000',
  },
}
SCSS
$custom: #421f81;
$custom-light: #7d5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#421f81",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 261.429,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3516,
    "c": 0.15286,
    "h": 293.2
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#421F81
secondary
#8DB448
accent
#E443AB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #421F81

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

Preview Lab → · Contrast checker → · Palette generator →

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