#421F9B#421F9B

#421F9B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.183 H 286.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#421F9B
RGBrgb(66, 31, 155)
HSLhsl(257, 67%, 36%)
HSVhsv(257, 80%, 61%)
CMYKcmyk(57.4%, 80%, 0%, 39.2%)
CIE-LABlab(25.27, 47.01, -61.00)
CIE-LCHlch(25.27, 77.01, 307.62°)
OKLaboklab(37.71% 0.0526 -0.1756)
OKLCHoklch(37.71% 0.183 286.7)
XYZxyz(8.6514, 4.5043, 31.4175)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F9B #789B1F
analogous
#1F3A9B #421F9B #801F9B
triadic
#421F9B #9B421F #1F9B42
tetradic
#421F9B #9B1F3A #789B1F #1F9B80
square
#421F9B #9B1F3A #789B1F #1F9B80
split-complementary
#421F9B #9B801F #3A9B1F
monochromatic
#170B35 #2C1568 #421F9B #5829CE #7D57DD

Accessibility & contrast

On white

11.05
#421F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#421F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F9B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F9B#FFFFFF#000000##FFFFFF
##421F9B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#17435D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #421f9b;
/* rgb */ color: rgb(66, 31, 155);
/* oklch */ color: oklch(37.7% 0.183 286.7);
Tailwind
colors: {
  custom: {
    50: '#8160ba',
    500: '#421f9b',
    950: '#000000',
  },
}
SCSS
$custom: #421f9b;
$custom-light: #8160ba;
$custom-dark: #000000;
JSON
{
  "hex": "#421f9b",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 256.935,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37709,
    "c": 0.18335,
    "h": 286.7
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

primary
#421F9B
secondary
#A2C155
accent
#EA3EB9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #421F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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