#421F9D#421F9D

#421F9D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.186 H 286.3°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#421F9D
RGBrgb(66, 31, 157)
HSLhsl(257, 67%, 37%)
HSVhsv(257, 80%, 62%)
CMYKcmyk(58%, 80.3%, 0%, 38.4%)
CIE-LABlab(25.48, 47.59, -61.88)
CIE-LCHlch(25.48, 78.06, 307.56°)
OKLaboklab(37.91% 0.052 -0.1782)
OKLCHoklch(37.91% 0.186 286.3)
XYZxyz(8.8207, 4.5720, 32.3094)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F9D #7A9D1F
analogous
#1F3B9D #421F9D #811F9D
triadic
#421F9D #9D421F #1F9D42
tetradic
#421F9D #9D1F3B #7A9D1F #1F9D81
square
#421F9D #9D1F3B #7A9D1F #1F9D81
split-complementary
#421F9D #9D811F #3B9D1F
monochromatic
#170B37 #2D156A #421F9D #5729D0 #7D58DE

Accessibility & contrast

On white

10.97
#421F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#421F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F9D
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F9D#FFFFFF#000000##FFFFFF
##421F9D1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#14445E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #421f9d;
/* rgb */ color: rgb(66, 31, 157);
/* oklch */ color: oklch(37.9% 0.186 286.3);
Tailwind
colors: {
  custom: {
    50: '#8260bb',
    500: '#421f9d',
    950: '#000000',
  },
}
SCSS
$custom: #421f9d;
$custom-light: #8260bb;
$custom-dark: #000000;
JSON
{
  "hex": "#421f9d",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 256.667,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37914,
    "c": 0.18564,
    "h": 286.3
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#421F9D
secondary
#A4C256
accent
#EA3EBA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #421F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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