#401EAD#401EAD

#401EAD is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.3% C 0.205 H 282.4°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#401EAD
RGBrgb(64, 30, 173)
HSLhsl(254, 70%, 40%)
HSVhsv(254, 83%, 68%)
CMYKcmyk(63%, 82.7%, 0%, 32.2%)
CIE-LABlab(26.83, 52.35, -69.35)
CIE-LCHlch(26.83, 86.89, 307.05°)
OKLaboklab(39.31% 0.0441 -0.2)
OKLCHoklch(39.31% 0.205 282.4)
XYZxyz(10.1191, 5.0349, 39.9657)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EAD #8BAD1E
analogous
#1E43AD #401EAD #881EAD
triadic
#401EAD #AD401E #1EAD40
tetradic
#401EAD #AD1E43 #8BAD1E #1EAD88
square
#401EAD #AD1E43 #8BAD1E #1EAD88
split-complementary
#401EAD #AD881E #43AD1E
monochromatic
#190C45 #2D1579 #401EAD #572EDB #8162E4

Accessibility & contrast

On white

10.46
#401EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#401EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EAD
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EAD#FFFFFF#000000##FFFFFF
##401EAD1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B1
Deuteranopia (green-blind)
#003AAB
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #401ead;
/* rgb */ color: rgb(64, 30, 173);
/* oklch */ color: oklch(39.3% 0.205 282.4);
Tailwind
colors: {
  custom: {
    50: '#8460c7',
    500: '#401ead',
    950: '#000000',
  },
}
SCSS
$custom: #401ead;
$custom-light: #8460c7;
$custom-dark: #000000;
JSON
{
  "hex": "#401ead",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 173
  },
  "hsl": {
    "h": 254.266,
    "s": 70.443,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39309,
    "c": 0.20484,
    "h": 282.4
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#401EAD
secondary
#AFC85E
accent
#ED3BC3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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