#401C84#401C84

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

Color values

HEX#401C84
RGBrgb(64, 28, 132)
HSLhsl(261, 65%, 31%)
HSVhsv(261, 79%, 52%)
CMYKcmyk(51.5%, 78.8%, 0%, 48.2%)
CIE-LABlab(22.25, 41.59, -51.70)
CIE-LCHlch(22.25, 66.35, 308.82°)
OKLaboklab(34.86% 0.0588 -0.1485)
OKLCHoklch(34.86% 0.16 291.6)
XYZxyz(6.6933, 3.5862, 22.1649)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C84 #60841C
analogous
#1C2C84 #401C84 #741C84
triadic
#401C84 #84401C #1C8440
tetradic
#401C84 #841C2C #60841C #1C8474
square
#401C84 #841C2C #60841C #1C8474
split-complementary
#401C84 #84741C #2C841C
monochromatic
#0F071F #281152 #401C84 #5827B6 #7643D7

Accessibility & contrast

On white

12.23
#401C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C84
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C84#FFFFFF#000000##FFFFFF
##401C841.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#29394F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401c84;
/* rgb */ color: rgb(64, 28, 132);
/* oklch */ color: oklch(34.9% 0.160 291.6);
Tailwind
colors: {
  custom: {
    50: '#7d5da9',
    500: '#401c84',
    950: '#000000',
  },
}
SCSS
$custom: #401c84;
$custom-light: #7d5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#401c84",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 260.769,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34855,
    "c": 0.15967,
    "h": 291.6
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#401C84
secondary
#90B745
accent
#E840AE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401C84

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

Preview Lab → · Contrast checker → · Palette generator →

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