#401A8E#401A8E

#401A8E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.173 H 289.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#401A8E
RGBrgb(64, 26, 142)
HSLhsl(260, 69%, 33%)
HSVhsv(260, 82%, 56%)
CMYKcmyk(54.9%, 81.7%, 0%, 44.3%)
CIE-LABlab(22.94, 45.34, -56.84)
CIE-LCHlch(22.94, 72.70, 308.58°)
OKLaboklab(35.63% 0.0571 -0.1635)
OKLCHoklch(35.63% 0.173 289.2)
XYZxyz(7.3648, 3.7814, 25.9278)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A8E #688E1A
analogous
#1A2E8E #401A8E #7A1A8E
triadic
#401A8E #8E401A #1A8E40
tetradic
#401A8E #8E1A2E #688E1A #1A8E7A
square
#401A8E #8E1A2E #688E1A #1A8E7A
split-complementary
#401A8E #8E7A1A #2E8E1A
monochromatic
#110727 #29115A #401A8E #5723C2 #7745DD

Accessibility & contrast

On white

11.96
#401A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#401A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A8E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A8E#FFFFFF#000000##FFFFFF
##401A8E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#213C54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401a8e;
/* rgb */ color: rgb(64, 26, 142);
/* oklch */ color: oklch(35.6% 0.173 289.2);
Tailwind
colors: {
  custom: {
    50: '#7e5cb0',
    500: '#401a8e',
    950: '#000000',
  },
}
SCSS
$custom: #401a8e;
$custom-light: #7e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#401a8e",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 259.655,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35633,
    "c": 0.17316,
    "h": 289.2
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#401A8E
secondary
#97BE45
accent
#EC3CB2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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