#421D7B#421D7B

#421D7B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.148 H 295.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#421D7B
RGBrgb(66, 29, 123)
HSLhsl(264, 62%, 30%)
HSVhsv(264, 76%, 48%)
CMYKcmyk(46.3%, 76.4%, 0%, 51.8%)
CIE-LABlab(21.82, 38.89, -46.69)
CIE-LCHlch(21.82, 60.77, 309.79°)
OKLaboklab(34.35% 0.0635 -0.1337)
OKLCHoklch(34.35% 0.148 295.4)
XYZxyz(6.2603, 3.4669, 19.0744)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D7B #567B1D
analogous
#1D277B #421D7B #711D7B
triadic
#421D7B #7B421D #1D7B42
tetradic
#421D7B #7B1D27 #567B1D #1D7B71
square
#421D7B #7B1D27 #567B1D #1D7B71
split-complementary
#421D7B #7B711D #277B1D
monochromatic
#0D0619 #271149 #421D7B #5D29AD #7A40D2

Accessibility & contrast

On white

12.40
#421D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#421D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D7B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D7B#FFFFFF#000000##FFFFFF
##421D7B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421d7b;
/* rgb */ color: rgb(66, 29, 123);
/* oklch */ color: oklch(34.3% 0.148 295.4);
Tailwind
colors: {
  custom: {
    50: '#7c5da2',
    500: '#421d7b',
    950: '#000000',
  },
}
SCSS
$custom: #421d7b;
$custom-light: #7c5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#421d7b",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 263.617,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34349,
    "c": 0.14805,
    "h": 295.4
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#421D7B
secondary
#85AF45
accent
#E543A5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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