#421E8F#421E8F

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

Color values

HEX#421E8F
RGBrgb(66, 30, 143)
HSLhsl(259, 65%, 34%)
HSVhsv(259, 79%, 56%)
CMYKcmyk(53.8%, 79%, 0%, 43.9%)
CIE-LABlab(23.90, 44.06, -55.86)
CIE-LCHlch(23.90, 71.15, 308.26°)
OKLaboklab(36.39% 0.0571 -0.1606)
OKLCHoklch(36.39% 0.17 289.6)
XYZxyz(7.6675, 4.0696, 26.3628)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421E8F #6B8F1E
analogous
#1E338F #421E8F #7B1E8F
triadic
#421E8F #8F421E #1E8F42
tetradic
#421E8F #8F1E33 #6B8F1E #1E8F7B
square
#421E8F #8F1E33 #6B8F1E #1E8F7B
split-complementary
#421E8F #8F7B1E #338F1E
monochromatic
#13092A #2B135C #421E8F #5929C2 #7A4EDA

Accessibility & contrast

On white

11.58
#421E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421E8F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421E8F#FFFFFF#000000##FFFFFF
##421E8F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421e8f;
/* rgb */ color: rgb(66, 30, 143);
/* oklch */ color: oklch(36.4% 0.170 289.6);
Tailwind
colors: {
  custom: {
    50: '#7f5fb1',
    500: '#421e8f',
    950: '#000000',
  },
}
SCSS
$custom: #421e8f;
$custom-light: #7f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#421e8f",
  "rgb": {
    "r": 66,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 259.115,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36388,
    "c": 0.17044,
    "h": 289.6
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#421E8F
secondary
#99BC4C
accent
#E840B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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