#401C8D#401C8D

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

Color values

HEX#401C8D
RGBrgb(64, 28, 141)
HSLhsl(259, 67%, 33%)
HSVhsv(259, 80%, 55%)
CMYKcmyk(54.6%, 80.1%, 0%, 44.7%)
CIE-LABlab(23.15, 44.15, -55.87)
CIE-LCHlch(23.15, 71.21, 308.32°)
OKLaboklab(35.75% 0.056 -0.1607)
OKLCHoklch(35.75% 0.17 289.2)
XYZxyz(7.3359, 3.8432, 25.5494)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C8D #698D1C
analogous
#1C308D #401C8D #781C8D
triadic
#401C8D #8D401C #1C8D40
tetradic
#401C8D #8D1C30 #698D1C #1C8D78
square
#401C8D #8D1C30 #698D1C #1C8D78
split-complementary
#401C8D #8D781C #308D1C
monochromatic
#120827 #29125A #401C8D #5726C0 #7749DB

Accessibility & contrast

On white

11.87
#401C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#401C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C8D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C8D#FFFFFF#000000##FFFFFF
##401C8D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#223D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401c8d;
/* rgb */ color: rgb(64, 28, 141);
/* oklch */ color: oklch(35.7% 0.170 289.2);
Tailwind
colors: {
  custom: {
    50: '#7e5daf',
    500: '#401c8d',
    950: '#000000',
  },
}
SCSS
$custom: #401c8d;
$custom-light: #7e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#401c8d",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 259.115,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.17014,
    "h": 289.2
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#401C8D
secondary
#98BD48
accent
#EA3EB3
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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