#401C8C#401C8C

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

Color values

HEX#401C8C
RGBrgb(64, 28, 140)
HSLhsl(259, 67%, 33%)
HSVhsv(259, 80%, 55%)
CMYKcmyk(54.3%, 80%, 0%, 45.1%)
CIE-LABlab(23.05, 43.87, -55.41)
CIE-LCHlch(23.05, 70.67, 308.37°)
OKLaboklab(35.65% 0.0563 -0.1593)
OKLCHoklch(35.65% 0.169 289.5)
XYZxyz(7.2619, 3.8136, 25.1593)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C8C #688C1C
analogous
#1C308C #401C8C #781C8C
triadic
#401C8C #8C401C #1C8C40
tetradic
#401C8C #8C1C30 #688C1C #1C8C78
square
#401C8C #8C1C30 #688C1C #1C8C78
split-complementary
#401C8C #8C781C #308C1C
monochromatic
#110826 #291259 #401C8C #5726BF #7748DA

Accessibility & contrast

On white

11.91
#401C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C8C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C8C#FFFFFF#000000##FFFFFF
##401C8C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#233C54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401c8c;
/* rgb */ color: rgb(64, 28, 140);
/* oklch */ color: oklch(35.6% 0.169 289.5);
Tailwind
colors: {
  custom: {
    50: '#7e5daf',
    500: '#401c8c',
    950: '#000000',
  },
}
SCSS
$custom: #401c8c;
$custom-light: #7e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#401c8c",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 259.286,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35648,
    "c": 0.16898,
    "h": 289.5
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#401C8C
secondary
#97BC48
accent
#EA3EB2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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