#421FAF#421FAF

#421FAF is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.206 H 282.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#421FAF
RGBrgb(66, 31, 175)
HSLhsl(255, 70%, 40%)
HSVhsv(255, 82%, 69%)
CMYKcmyk(62.3%, 82.3%, 0%, 31.4%)
CIE-LABlab(27.39, 52.69, -69.63)
CIE-LCHlch(27.39, 87.31, 307.11°)
OKLaboklab(39.8% 0.046 -0.2008)
OKLCHoklch(39.8% 0.206 282.9)
XYZxyz(10.4722, 5.2326, 41.0073)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421FAF #8CAF1F
analogous
#1F44AF #421FAF #8A1FAF
triadic
#421FAF #AF421F #1FAF42
tetradic
#421FAF #AF1F44 #8CAF1F #1FAF8A
square
#421FAF #AF1F44 #8CAF1F #1FAF8A
split-complementary
#421FAF #AF8A1F #44AF1F
monochromatic
#1B0D47 #2E167B #421FAF #5A31DA #8465E4

Accessibility & contrast

On white

10.26
#421FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#421FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421FAF
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421FAF#FFFFFF#000000##FFFFFF
##421FAF1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #421faf;
/* rgb */ color: rgb(66, 31, 175);
/* oklch */ color: oklch(39.8% 0.206 282.9);
Tailwind
colors: {
  custom: {
    50: '#8561c8',
    500: '#421faf',
    950: '#000000',
  },
}
SCSS
$custom: #421faf;
$custom-light: #8561c8;
$custom-dark: #000000;
JSON
{
  "hex": "#421faf",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 175
  },
  "hsl": {
    "h": 254.583,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39801,
    "c": 0.20601,
    "h": 282.9
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#421FAF
secondary
#B0C961
accent
#ED3BC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #421FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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