#401A80#401A80

#401A80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.157 H 293.1°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#401A80
RGBrgb(64, 26, 128)
HSLhsl(262, 66%, 30%)
HSVhsv(262, 80%, 50%)
CMYKcmyk(50%, 79.7%, 0%, 49.8%)
CIE-LABlab(21.53, 41.42, -50.36)
CIE-LCHlch(21.53, 65.20, 309.44°)
OKLaboklab(34.23% 0.0616 -0.1445)
OKLCHoklch(34.23% 0.157 293.1)
XYZxyz(6.3789, 3.3871, 20.7356)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A80 #5A801A
analogous
#1A2780 #401A80 #731A80
triadic
#401A80 #80401A #1A8040
tetradic
#401A80 #801A27 #5A801A #1A8073
square
#401A80 #801A27 #5A801A #1A8073
split-complementary
#401A80 #80731A #27801A
monochromatic
#0D051A #27104D #401A80 #5924B3 #763DD8

Accessibility & contrast

On white

12.52
#401A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A80
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A80#FFFFFF#000000##FFFFFF
##401A801.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#2C364C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401a80;
/* rgb */ color: rgb(64, 26, 128);
/* oklch */ color: oklch(34.2% 0.157 293.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ba6',
    500: '#401a80',
    950: '#000000',
  },
}
SCSS
$custom: #401a80;
$custom-light: #7c5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#401a80",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 262.353,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34232,
    "c": 0.1571,
    "h": 293.1
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#401A80
secondary
#89B442
accent
#E93FAA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401A80

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

Preview Lab → · Contrast checker → · Palette generator →

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