#421FAB#421FAB

#421FAB is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.4% C 0.202 H 283.6°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#421FAB
RGBrgb(66, 31, 171)
HSLhsl(255, 69%, 40%)
HSVhsv(255, 82%, 67%)
CMYKcmyk(61.4%, 81.9%, 0%, 32.9%)
CIE-LABlab(26.96, 51.56, -67.94)
CIE-LCHlch(26.96, 85.29, 307.20°)
OKLaboklab(39.38% 0.0474 -0.1959)
OKLCHoklch(39.38% 0.202 283.6)
XYZxyz(10.0852, 5.0778, 38.9689)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421FAB #88AB1F
analogous
#1F42AB #421FAB #881FAB
triadic
#421FAB #AB421F #1FAB42
tetradic
#421FAB #AB1F42 #88AB1F #1FAB88
square
#421FAB #AB1F42 #88AB1F #1FAB88
split-complementary
#421FAB #AB881F #42AB1F
monochromatic
#1A0C43 #2E1677 #421FAB #592ED9 #8262E3

Accessibility & contrast

On white

10.42
#421FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#421FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421FAB
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421FAB#FFFFFF#000000##FFFFFF
##421FAB1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #421fab;
/* rgb */ color: rgb(66, 31, 171);
/* oklch */ color: oklch(39.4% 0.202 283.6);
Tailwind
colors: {
  custom: {
    50: '#8461c5',
    500: '#421fab',
    950: '#000000',
  },
}
SCSS
$custom: #421fab;
$custom-light: #8461c5;
$custom-dark: #000000;
JSON
{
  "hex": "#421fab",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 255,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.20153,
    "h": 283.6
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

primary
#421FAB
secondary
#ADC75E
accent
#EC3CC0
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #421FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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