#421F9E#421F9E

#421F9E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.187 H 286.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#421F9E
RGBrgb(66, 31, 158)
HSLhsl(257, 67%, 37%)
HSVhsv(257, 80%, 62%)
CMYKcmyk(58.2%, 80.4%, 0%, 38%)
CIE-LABlab(25.58, 47.87, -62.32)
CIE-LCHlch(25.58, 78.59, 307.53°)
OKLaboklab(38.02% 0.0516 -0.1795)
OKLCHoklch(38.02% 0.187 286)
XYZxyz(8.9064, 4.6063, 32.7609)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F9E #7B9E1F
analogous
#1F3C9E #421F9E #811F9E
triadic
#421F9E #9E421F #1F9E42
tetradic
#421F9E #9E1F3C #7B9E1F #1F9E81
square
#421F9E #9E1F3C #7B9E1F #1F9E81
split-complementary
#421F9E #9E811F #3C9E1F
monochromatic
#170B38 #2D156B #421F9E #5729D1 #7E59DE

Accessibility & contrast

On white

10.93
#421F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#421F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F9E
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F9E#FFFFFF#000000##FFFFFF
##421F9E1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#12455F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #421f9e;
/* rgb */ color: rgb(66, 31, 158);
/* oklch */ color: oklch(38.0% 0.187 286.0);
Tailwind
colors: {
  custom: {
    50: '#8260bc',
    500: '#421f9e',
    950: '#000000',
  },
}
SCSS
$custom: #421f9e;
$custom-light: #8260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#421f9e",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 256.535,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38017,
    "c": 0.18679,
    "h": 286
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #421F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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