#421F7E#421F7E

#421F7E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.149 H 294.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#421F7E
RGBrgb(66, 31, 126)
HSLhsl(262, 61%, 31%)
HSVhsv(262, 75%, 49%)
CMYKcmyk(47.6%, 75.4%, 0%, 50.6%)
CIE-LABlab(22.46, 38.71, -47.56)
CIE-LCHlch(22.46, 61.33, 309.14°)
OKLaboklab(34.88% 0.0609 -0.1363)
OKLCHoklch(34.88% 0.149 294.1)
XYZxyz(6.5016, 3.6444, 20.0955)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F7E #5B7E1F
analogous
#1F2B7E #421F7E #711F7E
triadic
#421F7E #7E421F #1F7E42
tetradic
#421F7E #7E1F2B #5B7E1F #1F7E71
square
#421F7E #7E1F2B #5B7E1F #1F7E71
split-complementary
#421F7E #7E711F #2B7E1F
monochromatic
#0F071C #28134D #421F7E #5C2BAF #7946D1

Accessibility & contrast

On white

12.15
#421F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#421F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F7E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F7E#FFFFFF#000000##FFFFFF
##421F7E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#30384C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #421f7e;
/* rgb */ color: rgb(66, 31, 126);
/* oklch */ color: oklch(34.9% 0.149 294.1);
Tailwind
colors: {
  custom: {
    50: '#7d5ea4',
    500: '#421f7e',
    950: '#000000',
  },
}
SCSS
$custom: #421f7e;
$custom-light: #7d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#421f7e",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 262.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.14926,
    "h": 294.1
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#421F7E
secondary
#8AB148
accent
#E444A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #421F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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