#401C8F#401C8F

#401C8F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.172 H 288.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#401C8F
RGBrgb(64, 28, 143)
HSLhsl(259, 67%, 34%)
HSVhsv(259, 80%, 56%)
CMYKcmyk(55.2%, 80.4%, 0%, 43.9%)
CIE-LABlab(23.35, 44.72, -56.78)
CIE-LCHlch(23.35, 72.27, 308.23°)
OKLaboklab(35.95% 0.0553 -0.1633)
OKLCHoklch(35.95% 0.172 288.7)
XYZxyz(7.4861, 3.9033, 26.3402)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C8F #6B8F1C
analogous
#1C318F #401C8F #791C8F
triadic
#401C8F #8F401C #1C8F40
tetradic
#401C8F #8F1C31 #6B8F1C #1C8F79
square
#401C8F #8F1C31 #6B8F1C #1C8F79
split-complementary
#401C8F #8F791C #318F1C
monochromatic
#120829 #29125C #401C8F #5726C2 #774ADC

Accessibility & contrast

On white

11.79
#401C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#401C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C8F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C8F#FFFFFF#000000##FFFFFF
##401C8F1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#203D55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401c8f;
/* rgb */ color: rgb(64, 28, 143);
/* oklch */ color: oklch(36.0% 0.172 288.7);
Tailwind
colors: {
  custom: {
    50: '#7e5db1',
    500: '#401c8f',
    950: '#000000',
  },
}
SCSS
$custom: #401c8f;
$custom-light: #7e5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#401c8f",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 258.783,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35951,
    "c": 0.17245,
    "h": 288.7
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#401C8F
secondary
#99BE49
accent
#EA3EB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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