#401C80#401C80

#401C80 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.155 H 292.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#401C80
RGBrgb(64, 28, 128)
HSLhsl(262, 64%, 31%)
HSVhsv(262, 78%, 50%)
CMYKcmyk(50%, 78.1%, 0%, 49.8%)
CIE-LABlab(21.87, 40.46, -49.81)
CIE-LCHlch(21.87, 64.17, 309.09°)
OKLaboklab(34.47% 0.0599 -0.1429)
OKLCHoklch(34.47% 0.155 292.7)
XYZxyz(6.4248, 3.4788, 20.7508)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C80 #5C801C
analogous
#1C2A80 #401C80 #721C80
triadic
#401C80 #80401C #1C8040
tetradic
#401C80 #801C2A #5C801C #1C8072
square
#401C80 #801C2A #5C801C #1C8072
split-complementary
#401C80 #80721C #2A801C
monochromatic
#0E061C #27114E #401C80 #5927B2 #7641D5

Accessibility & contrast

On white

12.38
#401C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C80
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C80#FFFFFF#000000##FFFFFF
##401C801.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c80;
/* rgb */ color: rgb(64, 28, 128);
/* oklch */ color: oklch(34.5% 0.155 292.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ca6',
    500: '#401c80',
    950: '#000000',
  },
}
SCSS
$custom: #401c80;
$custom-light: #7c5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#401c80",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 261.6,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34467,
    "c": 0.15497,
    "h": 292.7
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#401C80
secondary
#8BB344
accent
#E741AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C80

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

Preview Lab → · Contrast checker → · Palette generator →

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