#401A85#401A85

#401A85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.163 H 291.6°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#401A85
RGBrgb(64, 26, 133)
HSLhsl(261, 67%, 31%)
HSVhsv(261, 80%, 52%)
CMYKcmyk(51.9%, 80.5%, 0%, 47.8%)
CIE-LABlab(22.02, 42.82, -52.70)
CIE-LCHlch(22.02, 67.90, 309.09°)
OKLaboklab(34.72% 0.0601 -0.1514)
OKLCHoklch(34.72% 0.163 291.6)
XYZxyz(6.7162, 3.5220, 22.5117)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A85 #5F851A
analogous
#1A2985 #401A85 #751A85
triadic
#401A85 #85401A #1A8540
tetradic
#401A85 #851A29 #5F851A #1A8575
square
#401A85 #851A29 #5F851A #1A8575
split-complementary
#401A85 #85751A #29851A
monochromatic
#0F061F #271052 #401A85 #5924B8 #7640DA

Accessibility & contrast

On white

12.32
#401A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A85
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A85#FFFFFF#000000##FFFFFF
##401A851.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#28384F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401a85;
/* rgb */ color: rgb(64, 26, 133);
/* oklch */ color: oklch(34.7% 0.163 291.6);
Tailwind
colors: {
  custom: {
    50: '#7d5caa',
    500: '#401a85',
    950: '#000000',
  },
}
SCSS
$custom: #401a85;
$custom-light: #7d5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#401a85",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 261.308,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34724,
    "c": 0.16287,
    "h": 291.6
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#401A85
secondary
#8FB842
accent
#EA3EAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401A85

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

Preview Lab → · Contrast checker → · Palette generator →

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