#401A86#401A86

#401A86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.164 H 291.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#401A86
RGBrgb(64, 26, 134)
HSLhsl(261, 68%, 31%)
HSVhsv(261, 81%, 53%)
CMYKcmyk(52.2%, 80.6%, 0%, 47.5%)
CIE-LABlab(22.12, 43.10, -53.17)
CIE-LCHlch(22.12, 68.44, 309.03°)
OKLaboklab(34.82% 0.0597 -0.1528)
OKLCHoklch(34.82% 0.164 291.4)
XYZxyz(6.7856, 3.5497, 22.8773)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A86 #60861A
analogous
#1A2A86 #401A86 #761A86
triadic
#401A86 #86401A #1A8640
tetradic
#401A86 #861A2A #60861A #1A8676
square
#401A86 #861A2A #60861A #1A8676
split-complementary
#401A86 #86761A #2A861A
monochromatic
#0F061F #281053 #401A86 #5824B9 #7640DA

Accessibility & contrast

On white

12.28
#401A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#401A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A86
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A86#FFFFFF#000000##FFFFFF
##401A861.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#283950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401a86;
/* rgb */ color: rgb(64, 26, 134);
/* oklch */ color: oklch(34.8% 0.164 291.4);
Tailwind
colors: {
  custom: {
    50: '#7d5caa',
    500: '#401a86',
    950: '#000000',
  },
}
SCSS
$custom: #401a86;
$custom-light: #7d5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#401a86",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 261.111,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34824,
    "c": 0.16402,
    "h": 291.4
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#401A86
secondary
#90B942
accent
#EA3DAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401A86

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

Preview Lab → · Contrast checker → · Palette generator →

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