#401EB4#401EB4

#401EB4 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.1% C 0.213 H 281.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#401EB4
RGBrgb(64, 30, 180)
HSLhsl(254, 71%, 41%)
HSVhsv(254, 83%, 71%)
CMYKcmyk(64.4%, 83.3%, 0%, 29.4%)
CIE-LABlab(27.61, 54.32, -72.26)
CIE-LCHlch(27.61, 90.39, 306.93°)
OKLaboklab(40.07% 0.0417 -0.2085)
OKLCHoklch(40.07% 0.213 281.3)
XYZxyz(10.8143, 5.3130, 43.6268)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EB4 #92B41E
analogous
#1E47B4 #401EB4 #8B1EB4
triadic
#401EB4 #B4401E #1EB440
tetradic
#401EB4 #B41E47 #92B41E #1EB48B
square
#401EB4 #B41E47 #92B41E #1EB48B
split-complementary
#401EB4 #B48B1E #47B41E
monochromatic
#1B0D4B #2D1580 #401EB4 #5932DD #8467E6

Accessibility & contrast

On white

10.18
#401EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#401EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EB4
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EB4#FFFFFF#000000##FFFFFF
##401EB41.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #401eb4;
/* rgb */ color: rgb(64, 30, 180);
/* oklch */ color: oklch(40.1% 0.213 281.3);
Tailwind
colors: {
  custom: {
    50: '#8561cc',
    500: '#401eb4',
    950: '#000000',
  },
}
SCSS
$custom: #401eb4;
$custom-light: #8561cc;
$custom-dark: #000000;
JSON
{
  "hex": "#401eb4",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 253.6,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40069,
    "c": 0.21264,
    "h": 281.3
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#401EB4
secondary
#B3CB63
accent
#EE3AC5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0514
muted
#7D7A82

Preview Lab

Preview with #401EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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