#401F82#401F82

#401F82 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.154 H 291.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#401F82
RGBrgb(64, 31, 130)
HSLhsl(260, 61%, 32%)
HSVhsv(260, 76%, 51%)
CMYKcmyk(50.8%, 76.2%, 0%, 49%)
CIE-LABlab(22.59, 39.52, -49.89)
CIE-LCHlch(22.59, 63.64, 308.38°)
OKLaboklab(35.03% 0.0567 -0.1432)
OKLCHoklch(35.03% 0.154 291.6)
XYZxyz(6.6325, 3.6814, 21.4759)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F82 #61821F
analogous
#1F3082 #401F82 #721F82
triadic
#401F82 #82401F #1F8240
tetradic
#401F82 #821F30 #61821F #1F8272
square
#401F82 #821F30 #61821F #1F8272
split-complementary
#401F82 #82721F #30821F
monochromatic
#0F071F #281351 #401F82 #582BB3 #7648D3

Accessibility & contrast

On white

12.09
#401F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#401F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F82
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F82#FFFFFF#000000##FFFFFF
##401F821.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#2A3A4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401f82;
/* rgb */ color: rgb(64, 31, 130);
/* oklch */ color: oklch(35.0% 0.154 291.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ea7',
    500: '#401f82',
    950: '#000000',
  },
}
SCSS
$custom: #401f82;
$custom-light: #7c5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#401f82",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 260,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35032,
    "c": 0.15401,
    "h": 291.6
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#401F82
secondary
#91B548
accent
#E543AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #401F82

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

Preview Lab → · Contrast checker → · Palette generator →

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