#421F8C#421F8C

#421F8C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.166 H 290.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#421F8C
RGBrgb(66, 31, 140)
HSLhsl(259, 64%, 34%)
HSVhsv(259, 78%, 55%)
CMYKcmyk(52.9%, 77.9%, 0%, 45.1%)
CIE-LABlab(23.77, 42.72, -54.20)
CIE-LCHlch(23.77, 69.01, 308.24°)
OKLaboklab(36.21% 0.0572 -0.1558)
OKLCHoklch(36.21% 0.166 290.1)
XYZxyz(7.4690, 4.0313, 25.1904)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F8C #698C1F
analogous
#1F328C #421F8C #781F8C
triadic
#421F8C #8C421F #1F8C42
tetradic
#421F8C #8C1F32 #698C1F #1F8C78
square
#421F8C #8C1F32 #698C1F #1F8C78
split-complementary
#421F8C #8C781F #328C1F
monochromatic
#130928 #2A145A #421F8C #5A2ABE #7A4ED8

Accessibility & contrast

On white

11.63
#421F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421F8C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F8C#FFFFFF#000000##FFFFFF
##421F8C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#273D54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #421f8c;
/* rgb */ color: rgb(66, 31, 140);
/* oklch */ color: oklch(36.2% 0.166 290.1);
Tailwind
colors: {
  custom: {
    50: '#7f5faf',
    500: '#421f8c',
    950: '#000000',
  },
}
SCSS
$custom: #421f8c;
$custom-light: #7f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#421f8c",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 259.266,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.16591,
    "h": 290.1
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#421F8C
secondary
#97BB4C
accent
#E741B2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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