#401EA0#401EA0

#401EA0 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.190 H 284.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#401EA0
RGBrgb(64, 30, 160)
HSLhsl(256, 68%, 37%)
HSVhsv(256, 81%, 63%)
CMYKcmyk(60%, 81.3%, 0%, 37.3%)
CIE-LABlab(25.43, 48.66, -63.80)
CIE-LCHlch(25.43, 80.24, 307.33°)
OKLaboklab(37.92% 0.0485 -0.1839)
OKLCHoklch(37.92% 0.19 284.8)
XYZxyz(8.9219, 4.5560, 33.6602)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EA0 #7EA01E
analogous
#1E3DA0 #401EA0 #811EA0
triadic
#401EA0 #A0401E #1EA040
tetradic
#401EA0 #A01E3D #7EA01E #1EA081
square
#401EA0 #A01E3D #7EA01E #1EA081
split-complementary
#401EA0 #A0811E #3DA01E
monochromatic
#170B39 #2B146C #401EA0 #5528D4 #7C59E0

Accessibility & contrast

On white

10.99
#401EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#401EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EA0
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EA0#FFFFFF#000000##FFFFFF
##401EA01.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#024560
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401ea0;
/* rgb */ color: rgb(64, 30, 160);
/* oklch */ color: oklch(37.9% 0.190 284.8);
Tailwind
colors: {
  custom: {
    50: '#815fbd',
    500: '#401ea0',
    950: '#000000',
  },
}
SCSS
$custom: #401ea0;
$custom-light: #815fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#401ea0",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 255.692,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37925,
    "c": 0.19015,
    "h": 284.8
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#401EA0
secondary
#A7C456
accent
#EB3DBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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