#401E80#401E80

#401E80 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.153 H 292.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#401E80
RGBrgb(64, 30, 128)
HSLhsl(261, 62%, 31%)
HSVhsv(261, 77%, 50%)
CMYKcmyk(50%, 76.6%, 0%, 49.8%)
CIE-LABlab(22.22, 39.45, -49.23)
CIE-LCHlch(22.22, 63.09, 308.71°)
OKLaboklab(34.71% 0.0581 -0.1412)
OKLCHoklch(34.71% 0.153 292.4)
XYZxyz(6.4738, 3.5768, 20.7672)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E80 #5E801E
analogous
#1E2D80 #401E80 #711E80
triadic
#401E80 #80401E #1E8040
tetradic
#401E80 #801E2D #5E801E #1E8071
square
#401E80 #801E2D #5E801E #1E8071
split-complementary
#401E80 #80711E #2D801E
monochromatic
#0E071D #27124E #401E80 #592AB2 #7645D3

Accessibility & contrast

On white

12.24
#401E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E80
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E80#FFFFFF#000000##FFFFFF
##401E801.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#2C384D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401e80;
/* rgb */ color: rgb(64, 30, 128);
/* oklch */ color: oklch(34.7% 0.153 292.4);
Tailwind
colors: {
  custom: {
    50: '#7c5ea6',
    500: '#401e80',
    950: '#000000',
  },
}
SCSS
$custom: #401e80;
$custom-light: #7c5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#401e80",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 260.816,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34714,
    "c": 0.15274,
    "h": 292.4
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#401E80
secondary
#8EB347
accent
#E543AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E80

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

Preview Lab → · Contrast checker → · Palette generator →

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