#421F8E#421F8E

#421F8E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.168 H 289.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#421F8E
RGBrgb(66, 31, 142)
HSLhsl(259, 64%, 34%)
HSVhsv(259, 78%, 56%)
CMYKcmyk(53.5%, 78.2%, 0%, 44.3%)
CIE-LABlab(23.97, 43.29, -55.13)
CIE-LCHlch(23.97, 70.09, 308.14°)
OKLaboklab(36.41% 0.0566 -0.1585)
OKLCHoklch(36.41% 0.168 289.6)
XYZxyz(7.6178, 4.0909, 25.9742)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F8E #6B8E1F
analogous
#1F348E #421F8E #7A1F8E
triadic
#421F8E #8E421F #1F8E42
tetradic
#421F8E #8E1F34 #6B8E1F #1F8E7A
square
#421F8E #8E1F34 #6B8E1F #1F8E7A
split-complementary
#421F8E #8E7A1F #348E1F
monochromatic
#13092A #2B145C #421F8E #592AC0 #7A4FD9

Accessibility & contrast

On white

11.55
#421F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421F8E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F8E#FFFFFF#000000##FFFFFF
##421F8E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421f8e;
/* rgb */ color: rgb(66, 31, 142);
/* oklch */ color: oklch(36.4% 0.168 289.6);
Tailwind
colors: {
  custom: {
    50: '#7f5fb0',
    500: '#421f8e',
    950: '#000000',
  },
}
SCSS
$custom: #421f8e;
$custom-light: #7f5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#421f8e",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 258.919,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36407,
    "c": 0.16826,
    "h": 289.6
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#421F8E
secondary
#99BB4D
accent
#E741B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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