#401F80#401F80

#401F80 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.152 H 292.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#401F80
RGBrgb(64, 31, 128)
HSLhsl(260, 61%, 31%)
HSVhsv(260, 76%, 50%)
CMYKcmyk(50%, 75.8%, 0%, 49.8%)
CIE-LABlab(22.40, 38.94, -48.93)
CIE-LCHlch(22.40, 62.53, 308.51°)
OKLaboklab(34.84% 0.0572 -0.1404)
OKLCHoklch(34.84% 0.152 292.2)
XYZxyz(6.4995, 3.6282, 20.7758)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F80 #5F801F
analogous
#1F2F80 #401F80 #701F80
triadic
#401F80 #80401F #1F8040
tetradic
#401F80 #801F2F #5F801F #1F8070
square
#401F80 #801F2F #5F801F #1F8070
split-complementary
#401F80 #80701F #2F801F
monochromatic
#0F071D #27134F #401F80 #592BB1 #7647D2

Accessibility & contrast

On white

12.17
#401F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#401F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F80
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F80#FFFFFF#000000##FFFFFF
##401F801.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#2C394E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401f80;
/* rgb */ color: rgb(64, 31, 128);
/* oklch */ color: oklch(34.8% 0.152 292.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ea6',
    500: '#401f80',
    950: '#000000',
  },
}
SCSS
$custom: #401f80;
$custom-light: #7c5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#401f80",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 260.412,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34843,
    "c": 0.1516,
    "h": 292.2
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#401F80
secondary
#8FB348
accent
#E444AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401F80

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

Preview Lab → · Contrast checker → · Palette generator →

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