#421F88#421F88

#421F88 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.161 H 291.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#421F88
RGBrgb(66, 31, 136)
HSLhsl(260, 63%, 33%)
HSVhsv(260, 77%, 53%)
CMYKcmyk(51.5%, 77.2%, 0%, 46.7%)
CIE-LABlab(23.39, 41.57, -52.33)
CIE-LCHlch(23.39, 66.84, 308.46°)
OKLaboklab(35.82% 0.0583 -0.1503)
OKLCHoklch(35.82% 0.161 291.2)
XYZxyz(7.1794, 3.9155, 23.6653)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F88 #65881F
analogous
#1F3088 #421F88 #761F88
triadic
#421F88 #88421F #1F8842
tetradic
#421F88 #881F30 #65881F #1F8876
square
#421F88 #881F30 #65881F #1F8876
split-complementary
#421F88 #88761F #30881F
monochromatic
#120824 #2A1456 #421F88 #5A2ABA #7A4BD6

Accessibility & contrast

On white

11.78
#421F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421F88
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F88#FFFFFF#000000##FFFFFF
##421F881.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#2A3C52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421f88;
/* rgb */ color: rgb(66, 31, 136);
/* oklch */ color: oklch(35.8% 0.161 291.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fac',
    500: '#421f88',
    950: '#000000',
  },
}
SCSS
$custom: #421f88;
$custom-light: #7e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#421f88",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 260,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.16119,
    "h": 291.2
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#421F88
secondary
#94B94A
accent
#E642AF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421F88

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

Preview Lab → · Contrast checker → · Palette generator →

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