#401C8B#401C8B

#401C8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.168 H 289.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#401C8B
RGBrgb(64, 28, 139)
HSLhsl(259, 66%, 33%)
HSVhsv(259, 80%, 55%)
CMYKcmyk(54%, 79.9%, 0%, 45.5%)
CIE-LABlab(22.94, 43.58, -54.95)
CIE-LCHlch(22.94, 70.14, 308.42°)
OKLaboklab(35.55% 0.0566 -0.158)
OKLCHoklch(35.55% 0.168 289.7)
XYZxyz(7.1885, 3.7842, 24.7728)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C8B #678B1C
analogous
#1C308B #401C8B #771C8B
triadic
#401C8B #8B401C #1C8B40
tetradic
#401C8B #8B1C30 #678B1C #1C8B77
square
#401C8B #8B1C30 #678B1C #1C8B77
split-complementary
#401C8B #8B771C #308B1C
monochromatic
#110725 #291258 #401C8B #5726BE #7747DA

Accessibility & contrast

On white

11.95
#401C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C8B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C8B#FFFFFF#000000##FFFFFF
##401C8B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#243C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401c8b;
/* rgb */ color: rgb(64, 28, 139);
/* oklch */ color: oklch(35.5% 0.168 289.7);
Tailwind
colors: {
  custom: {
    50: '#7e5dae',
    500: '#401c8b',
    950: '#000000',
  },
}
SCSS
$custom: #401c8b;
$custom-light: #7e5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#401c8b",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 259.459,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35548,
    "c": 0.16783,
    "h": 289.7
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#401C8B
secondary
#96BC47
accent
#E93EB2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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