#421FB2#421FB2

#421FB2 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.1% C 0.209 H 282.4°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#421FB2
RGBrgb(66, 31, 178)
HSLhsl(254, 70%, 41%)
HSVhsv(254, 83%, 70%)
CMYKcmyk(62.9%, 82.6%, 0%, 30.2%)
CIE-LABlab(27.71, 53.53, -70.88)
CIE-LCHlch(27.71, 88.82, 307.06°)
OKLaboklab(40.12% 0.045 -0.2045)
OKLCHoklch(40.12% 0.209 282.4)
XYZxyz(10.7701, 5.3518, 42.5763)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421FB2 #8FB21F
analogous
#1F45B2 #421FB2 #8B1FB2
triadic
#421FB2 #B2421F #1FB242
tetradic
#421FB2 #B21F45 #8FB21F #1FB28B
square
#421FB2 #B21F45 #8FB21F #1FB28B
split-complementary
#421FB2 #B28B1F #45B21F
monochromatic
#1B0D4A #2F167E #421FB2 #5B33DB #8567E5

Accessibility & contrast

On white

10.14
#421FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#421FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421FB2
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421FB2#FFFFFF#000000##FFFFFF
##421FB21.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #421fb2;
/* rgb */ color: rgb(66, 31, 178);
/* oklch */ color: oklch(40.1% 0.209 282.4);
Tailwind
colors: {
  custom: {
    50: '#8661ca',
    500: '#421fb2',
    950: '#000000',
  },
}
SCSS
$custom: #421fb2;
$custom-light: #8661ca;
$custom-dark: #000000;
JSON
{
  "hex": "#421fb2",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 178
  },
  "hsl": {
    "h": 254.286,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40123,
    "c": 0.20936,
    "h": 282.4
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#421FB2
secondary
#B1CA63
accent
#ED3BC3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #421FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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