#421F8D#421F8D

#421F8D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.167 H 289.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#421F8D
RGBrgb(66, 31, 141)
HSLhsl(259, 64%, 34%)
HSVhsv(259, 78%, 55%)
CMYKcmyk(53.2%, 78%, 0%, 44.7%)
CIE-LABlab(23.87, 43.01, -54.66)
CIE-LCHlch(23.87, 69.55, 308.19°)
OKLaboklab(36.31% 0.0569 -0.1571)
OKLCHoklch(36.31% 0.167 289.9)
XYZxyz(7.5431, 4.0610, 25.5805)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F8D #6A8D1F
analogous
#1F338D #421F8D #791F8D
triadic
#421F8D #8D421F #1F8D42
tetradic
#421F8D #8D1F33 #6A8D1F #1F8D79
square
#421F8D #8D1F33 #6A8D1F #1F8D79
split-complementary
#421F8D #8D791F #338D1F
monochromatic
#130929 #2B145B #421F8D #592ABF #7A4ED8

Accessibility & contrast

On white

11.59
#421F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#421F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F8D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F8D#FFFFFF#000000##FFFFFF
##421F8D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#263E55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #421f8d;
/* rgb */ color: rgb(66, 31, 141);
/* oklch */ color: oklch(36.3% 0.167 289.9);
Tailwind
colors: {
  custom: {
    50: '#7f5faf',
    500: '#421f8d',
    950: '#000000',
  },
}
SCSS
$custom: #421f8d;
$custom-light: #7f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#421f8d",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 259.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36309,
    "c": 0.16709,
    "h": 289.9
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#421F8D
secondary
#98BB4D
accent
#E741B2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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