#401EB2#401EB2

#401EB2 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.9% C 0.210 H 281.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#401EB2
RGBrgb(64, 30, 178)
HSLhsl(254, 71%, 41%)
HSVhsv(254, 83%, 70%)
CMYKcmyk(64%, 83.1%, 0%, 30.2%)
CIE-LABlab(27.39, 53.75, -71.43)
CIE-LCHlch(27.39, 89.40, 306.96°)
OKLaboklab(39.85% 0.0424 -0.2061)
OKLCHoklch(39.85% 0.21 281.6)
XYZxyz(10.6120, 5.2321, 42.5615)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EB2 #90B21E
analogous
#1E46B2 #401EB2 #8A1EB2
triadic
#401EB2 #B2401E #1EB240
tetradic
#401EB2 #B21E46 #90B21E #1EB28A
square
#401EB2 #B21E46 #90B21E #1EB28A
split-complementary
#401EB2 #B28A1E #46B21E
monochromatic
#1A0C49 #2D157E #401EB2 #5831DC #8365E5

Accessibility & contrast

On white

10.26
#401EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#401EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EB2
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EB2#FFFFFF#000000##FFFFFF
##401EB21.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B6
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #401eb2;
/* rgb */ color: rgb(64, 30, 178);
/* oklch */ color: oklch(39.9% 0.210 281.6);
Tailwind
colors: {
  custom: {
    50: '#8561ca',
    500: '#401eb2',
    950: '#000000',
  },
}
SCSS
$custom: #401eb2;
$custom-light: #8561ca;
$custom-dark: #000000;
JSON
{
  "hex": "#401eb2",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 178
  },
  "hsl": {
    "h": 253.784,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39851,
    "c": 0.21042,
    "h": 281.6
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#401EB2
secondary
#B2CA62
accent
#EE3AC5
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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