#421F9F#421F9F

#421F9F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.188 H 285.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#421F9F
RGBrgb(66, 31, 159)
HSLhsl(256, 67%, 37%)
HSVhsv(256, 81%, 62%)
CMYKcmyk(58.5%, 80.5%, 0%, 37.6%)
CIE-LABlab(25.69, 48.16, -62.76)
CIE-LCHlch(25.69, 79.11, 307.50°)
OKLaboklab(38.12% 0.0513 -0.1808)
OKLCHoklch(38.12% 0.188 285.8)
XYZxyz(8.9929, 4.6409, 33.2161)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F9F #7C9F1F
analogous
#1F3C9F #421F9F #821F9F
triadic
#421F9F #9F421F #1F9F42
tetradic
#421F9F #9F1F3C #7C9F1F #1F9F82
square
#421F9F #9F1F3C #7C9F1F #1F9F82
split-complementary
#421F9F #9F821F #3C9F1F
monochromatic
#170B39 #2D156C #421F9F #5729D2 #7E5ADF

Accessibility & contrast

On white

10.89
#421F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#421F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F9F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F9F#FFFFFF#000000##FFFFFF
##421F9F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#10455F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #421f9f;
/* rgb */ color: rgb(66, 31, 159);
/* oklch */ color: oklch(38.1% 0.188 285.8);
Tailwind
colors: {
  custom: {
    50: '#8260bd',
    500: '#421f9f',
    950: '#000000',
  },
}
SCSS
$custom: #421f9f;
$custom-light: #8260bd;
$custom-dark: #000000;
JSON
{
  "hex": "#421f9f",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 256.406,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3812,
    "c": 0.18793,
    "h": 285.8
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#421F9F
secondary
#A5C357
accent
#EA3EBB
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #421F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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