#401C87#401C87

#401C87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.163 H 290.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#401C87
RGBrgb(64, 28, 135)
HSLhsl(260, 66%, 32%)
HSVhsv(260, 79%, 53%)
CMYKcmyk(52.6%, 79.3%, 0%, 47.1%)
CIE-LABlab(22.55, 42.44, -53.10)
CIE-LCHlch(22.55, 67.98, 308.64°)
OKLaboklab(35.15% 0.0579 -0.1526)
OKLCHoklch(35.15% 0.163 290.8)
XYZxyz(6.9015, 3.6695, 23.2616)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C87 #63871C
analogous
#1C2E87 #401C87 #761C87
triadic
#401C87 #87401C #1C8740
tetradic
#401C87 #871C2E #63871C #1C8776
square
#401C87 #871C2E #63871C #1C8776
split-complementary
#401C87 #87761C #2E871C
monochromatic
#100722 #281154 #401C87 #5827BA #7745D8

Accessibility & contrast

On white

12.11
#401C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C87
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C87#FFFFFF#000000##FFFFFF
##401C871.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#273A51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401c87;
/* rgb */ color: rgb(64, 28, 135);
/* oklch */ color: oklch(35.1% 0.163 290.8);
Tailwind
colors: {
  custom: {
    50: '#7d5dab',
    500: '#401c87',
    950: '#000000',
  },
}
SCSS
$custom: #401c87;
$custom-light: #7d5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#401c87",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 260.187,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.16318,
    "h": 290.8
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#401C87
secondary
#93BA45
accent
#E93FB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401C87

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

Preview Lab → · Contrast checker → · Palette generator →

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