#401EA1#401EA1

#401EA1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.191 H 284.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#401EA1
RGBrgb(64, 30, 161)
HSLhsl(256, 69%, 37%)
HSVhsv(256, 81%, 63%)
CMYKcmyk(60.2%, 81.4%, 0%, 36.9%)
CIE-LABlab(25.54, 48.94, -64.23)
CIE-LCHlch(25.54, 80.75, 307.30°)
OKLaboklab(38.03% 0.0481 -0.1851)
OKLCHoklch(38.03% 0.191 284.6)
XYZxyz(9.0097, 4.5912, 34.1227)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EA1 #7FA11E
analogous
#1E3DA1 #401EA1 #821EA1
triadic
#401EA1 #A1401E #1EA140
tetradic
#401EA1 #A11E3D #7FA11E #1EA182
square
#401EA1 #A11E3D #7FA11E #1EA182
split-complementary
#401EA1 #A1821E #3DA11E
monochromatic
#170B3A #2B146D #401EA1 #5528D5 #7C59E0

Accessibility & contrast

On white

10.95
#401EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#401EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EA1
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EA1#FFFFFF#000000##FFFFFF
##401EA11.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401ea1;
/* rgb */ color: rgb(64, 30, 161);
/* oklch */ color: oklch(38.0% 0.191 284.6);
Tailwind
colors: {
  custom: {
    50: '#815fbe',
    500: '#401ea1',
    950: '#000000',
  },
}
SCSS
$custom: #401ea1;
$custom-light: #815fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#401ea1",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 255.573,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3803,
    "c": 0.19129,
    "h": 284.6
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#401EA1
secondary
#A8C457
accent
#EB3CBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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