#401C8E#401C8E

#401C8E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.171 H 289.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#401C8E
RGBrgb(64, 28, 142)
HSLhsl(259, 67%, 33%)
HSVhsv(259, 80%, 56%)
CMYKcmyk(54.9%, 80.3%, 0%, 44.3%)
CIE-LABlab(23.25, 44.43, -56.32)
CIE-LCHlch(23.25, 71.74, 308.27°)
OKLaboklab(35.85% 0.0557 -0.162)
OKLCHoklch(35.85% 0.171 289)
XYZxyz(7.4107, 3.8731, 25.9430)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C8E #6A8E1C
analogous
#1C318E #401C8E #791C8E
triadic
#401C8E #8E401C #1C8E40
tetradic
#401C8E #8E1C31 #6A8E1C #1C8E79
square
#401C8E #8E1C31 #6A8E1C #1C8E79
split-complementary
#401C8E #8E791C #318E1C
monochromatic
#120828 #29125B #401C8E #5726C1 #7749DB

Accessibility & contrast

On white

11.83
#401C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C8E
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C8E#FFFFFF#000000##FFFFFF
##401C8E1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#213D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401c8e;
/* rgb */ color: rgb(64, 28, 142);
/* oklch */ color: oklch(35.9% 0.171 289.0);
Tailwind
colors: {
  custom: {
    50: '#7e5db0',
    500: '#401c8e',
    950: '#000000',
  },
}
SCSS
$custom: #401c8e;
$custom-light: #7e5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#401c8e",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 258.947,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3585,
    "c": 0.1713,
    "h": 289
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#401C8E
secondary
#98BD49
accent
#EA3EB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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