#421F8B#421F8B

#421F8B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.165 H 290.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#421F8B
RGBrgb(66, 31, 139)
HSLhsl(259, 64%, 33%)
HSVhsv(259, 78%, 55%)
CMYKcmyk(52.5%, 77.7%, 0%, 45.5%)
CIE-LABlab(23.68, 42.43, -53.74)
CIE-LCHlch(23.68, 68.47, 308.30°)
OKLaboklab(36.11% 0.0574 -0.1544)
OKLCHoklch(36.11% 0.165 290.4)
XYZxyz(7.3956, 4.0020, 24.8039)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F8B #688B1F
analogous
#1F328B #421F8B #781F8B
triadic
#421F8B #8B421F #1F8B42
tetradic
#421F8B #8B1F32 #688B1F #1F8B78
square
#421F8B #8B1F32 #688B1F #1F8B78
split-complementary
#421F8B #8B781F #328B1F
monochromatic
#120927 #2A1459 #421F8B #5A2ABD #7A4DD7

Accessibility & contrast

On white

11.66
#421F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#421F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F8B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F8B#FFFFFF#000000##FFFFFF
##421F8B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421f8b;
/* rgb */ color: rgb(66, 31, 139);
/* oklch */ color: oklch(36.1% 0.165 290.4);
Tailwind
colors: {
  custom: {
    50: '#7f5fae',
    500: '#421f8b',
    950: '#000000',
  },
}
SCSS
$custom: #421f8b;
$custom-light: #7f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#421f8b",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 259.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.16474,
    "h": 290.4
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#421F8B
secondary
#96BA4C
accent
#E741B1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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