#401A87#401A87

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

Color values

HEX#401A87
RGBrgb(64, 26, 135)
HSLhsl(261, 68%, 32%)
HSVhsv(261, 81%, 53%)
CMYKcmyk(52.6%, 80.7%, 0%, 47.1%)
CIE-LABlab(22.22, 43.38, -53.63)
CIE-LCHlch(22.22, 68.98, 308.97°)
OKLaboklab(34.92% 0.0594 -0.1541)
OKLCHoklch(34.92% 0.165 291.1)
XYZxyz(6.8557, 3.5778, 23.2463)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A87 #61871A
analogous
#1A2B87 #401A87 #771A87
triadic
#401A87 #87401A #1A8740
tetradic
#401A87 #871A2B #61871A #1A8777
square
#401A87 #871A2B #61871A #1A8777
split-complementary
#401A87 #87771A #2B871A
monochromatic
#0F0620 #281054 #401A87 #5824BA #7641DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401A87#FFFFFF#000000##FFFFFF
##401A871.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)
#00378A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#273950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401a87;
/* rgb */ color: rgb(64, 26, 135);
/* oklch */ color: oklch(34.9% 0.165 291.1);
Tailwind
colors: {
  custom: {
    50: '#7d5cab',
    500: '#401a87',
    950: '#000000',
  },
}
SCSS
$custom: #401a87;
$custom-light: #7d5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#401a87",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 260.917,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34924,
    "c": 0.16517,
    "h": 291.1
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#401A87
secondary
#91BA42
accent
#EB3DAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401A87

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

Preview Lab → · Contrast checker → · Palette generator →

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