#401F84#401F84

#401F84 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.156 H 291.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#401F84
RGBrgb(64, 31, 132)
HSLhsl(260, 62%, 32%)
HSVhsv(260, 77%, 52%)
CMYKcmyk(51.5%, 76.5%, 0%, 48.2%)
CIE-LABlab(22.78, 40.10, -50.84)
CIE-LCHlch(22.78, 64.75, 308.26°)
OKLaboklab(35.22% 0.0562 -0.146)
OKLCHoklch(35.22% 0.156 291.1)
XYZxyz(6.7680, 3.7356, 22.1898)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F84 #63841F
analogous
#1F3184 #401F84 #731F84
triadic
#401F84 #84401F #1F8440
tetradic
#401F84 #841F31 #63841F #1F8473
square
#401F84 #841F31 #63841F #1F8473
split-complementary
#401F84 #84731F #31841F
monochromatic
#100821 #281352 #401F84 #582BB6 #7749D4

Accessibility & contrast

On white

12.02
#401F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#401F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F84
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F84#FFFFFF#000000##FFFFFF
##401F841.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#293A50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401f84;
/* rgb */ color: rgb(64, 31, 132);
/* oklch */ color: oklch(35.2% 0.156 291.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ea9',
    500: '#401f84',
    950: '#000000',
  },
}
SCSS
$custom: #401f84;
$custom-light: #7c5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#401f84",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 259.604,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35223,
    "c": 0.15642,
    "h": 291.1
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#401F84
secondary
#93B748
accent
#E543B0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #401F84

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

Preview Lab → · Contrast checker → · Palette generator →

#401F84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva