#421F8F#421F8F

#421F8F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.169 H 289.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#421F8F
RGBrgb(66, 31, 143)
HSLhsl(259, 64%, 34%)
HSVhsv(259, 78%, 56%)
CMYKcmyk(53.8%, 78.3%, 0%, 43.9%)
CIE-LABlab(24.07, 43.58, -55.59)
CIE-LCHlch(24.07, 70.63, 308.10°)
OKLaboklab(36.5% 0.0563 -0.1598)
OKLCHoklch(36.5% 0.169 289.4)
XYZxyz(7.6932, 4.1210, 26.3713)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F8F #6C8F1F
analogous
#1F348F #421F8F #7A1F8F
triadic
#421F8F #8F421F #1F8F42
tetradic
#421F8F #8F1F34 #6C8F1F #1F8F7A
square
#421F8F #8F1F34 #6C8F1F #1F8F7A
split-complementary
#421F8F #8F7A1F #348F1F
monochromatic
#14092A #2B145D #421F8F #592AC1 #7A4FD9

Accessibility & contrast

On white

11.51
#421F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#421F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F8F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F8F#FFFFFF#000000##FFFFFF
##421F8F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #421f8f;
/* rgb */ color: rgb(66, 31, 143);
/* oklch */ color: oklch(36.5% 0.169 289.4);
Tailwind
colors: {
  custom: {
    50: '#7f5fb1',
    500: '#421f8f',
    950: '#000000',
  },
}
SCSS
$custom: #421f8f;
$custom-light: #7f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#421f8f",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 258.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36505,
    "c": 0.16943,
    "h": 289.4
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#421F8F
secondary
#9ABC4E
accent
#E740B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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