#421E7B#421E7B

#421E7B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.147 H 295.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#421E7B
RGBrgb(66, 30, 123)
HSLhsl(263, 61%, 30%)
HSVhsv(263, 76%, 48%)
CMYKcmyk(46.3%, 75.6%, 0%, 51.8%)
CIE-LABlab(22.00, 38.38, -46.40)
CIE-LCHlch(22.00, 60.21, 309.60°)
OKLaboklab(34.48% 0.0626 -0.1329)
OKLCHoklch(34.48% 0.147 295.2)
XYZxyz(6.2852, 3.5167, 19.0827)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421E7B #577B1E
analogous
#1E287B #421E7B #711E7B
triadic
#421E7B #7B421E #1E7B42
tetradic
#421E7B #7B1E28 #577B1E #1E7B71
square
#421E7B #7B1E28 #577B1E #1E7B71
split-complementary
#421E7B #7B711E #287B1E
monochromatic
#0D0619 #28124A #421E7B #5C2AAC #7A42D1

Accessibility & contrast

On white

12.33
#421E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#421E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421E7B
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421E7B#FFFFFF#000000##FFFFFF
##421E7B1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#32364B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421e7b;
/* rgb */ color: rgb(66, 30, 123);
/* oklch */ color: oklch(34.5% 0.147 295.2);
Tailwind
colors: {
  custom: {
    50: '#7c5da2',
    500: '#421e7b',
    950: '#000000',
  },
}
SCSS
$custom: #421e7b;
$custom-light: #7c5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#421e7b",
  "rgb": {
    "r": 66,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 263.226,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.14686,
    "h": 295.2
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#421E7B
secondary
#86AE46
accent
#E444A6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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