#421F74#421F74

#421F74 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.137 H 297.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#421F74
RGBrgb(66, 31, 116)
HSLhsl(265, 58%, 29%)
HSVhsv(265, 73%, 45%)
CMYKcmyk(43.1%, 73.3%, 0%, 54.5%)
CIE-LABlab(21.58, 35.88, -42.62)
CIE-LCHlch(21.58, 55.71, 310.09°)
OKLaboklab(33.98% 0.063 -0.1218)
OKLCHoklch(33.98% 0.137 297.4)
XYZxyz(5.8883, 3.3991, 16.8655)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F74 #51741F
analogous
#1F2774 #421F74 #6D1F74
triadic
#421F74 #74421F #1F7442
tetradic
#421F74 #741F27 #51741F #1F746D
square
#421F74 #741F27 #51741F #1F746D
split-complementary
#421F74 #746D1F #27741F
monochromatic
#0E0618 #271244 #421F74 #5D2CA4 #7A41CC

Accessibility & contrast

On white

12.50
#421F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F74
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F74#FFFFFF#000000##FFFFFF
##421F741.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#353447
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421f74;
/* rgb */ color: rgb(66, 31, 116);
/* oklch */ color: oklch(34.0% 0.137 297.4);
Tailwind
colors: {
  custom: {
    50: '#7b5e9d',
    500: '#421f74',
    950: '#000000',
  },
}
SCSS
$custom: #421f74;
$custom-light: #7b5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#421f74",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 264.706,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33981,
    "c": 0.13713,
    "h": 297.4
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#421F74
secondary
#80A847
accent
#E147A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421F74

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

Preview Lab → · Contrast checker → · Palette generator →

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