#401AA1#401AA1

#401AA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.195 H 285.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#401AA1
RGBrgb(64, 26, 161)
HSLhsl(257, 72%, 37%)
HSVhsv(257, 84%, 63%)
CMYKcmyk(60.2%, 83.9%, 0%, 36.9%)
CIE-LABlab(24.96, 50.64, -65.19)
CIE-LCHlch(24.96, 82.55, 307.84°)
OKLaboklab(37.63% 0.0504 -0.1879)
OKLCHoklch(37.63% 0.195 285)
XYZxyz(8.9148, 4.4014, 34.0911)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401AA1 #7BA11A
analogous
#1A37A1 #401AA1 #841AA1
triadic
#401AA1 #A1401A #1AA140
tetradic
#401AA1 #A11A37 #7BA11A #1AA184
square
#401AA1 #A11A37 #7BA11A #1AA184
split-complementary
#401AA1 #A1841A #37A11A
monochromatic
#160938 #2B116C #401AA1 #5523D6 #7B52E3

Accessibility & contrast

On white

11.17
#401AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#401AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401AA1
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401AA1#FFFFFF#000000##FFFFFF
##401AA11.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401aa1;
/* rgb */ color: rgb(64, 26, 161);
/* oklch */ color: oklch(37.6% 0.195 285.0);
Tailwind
colors: {
  custom: {
    50: '#825ebe',
    500: '#401aa1',
    950: '#000000',
  },
}
SCSS
$custom: #401aa1;
$custom-light: #825ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#401aa1",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 256.889,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3763,
    "c": 0.19451,
    "h": 285
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#401AA1
secondary
#A5C651
accent
#EF39BC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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