#401C85#401C85

#401C85 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.161 H 291.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#401C85
RGBrgb(64, 28, 133)
HSLhsl(261, 65%, 32%)
HSVhsv(261, 79%, 52%)
CMYKcmyk(51.9%, 78.9%, 0%, 47.8%)
CIE-LABlab(22.35, 41.88, -52.17)
CIE-LCHlch(22.35, 66.89, 308.75°)
OKLaboklab(34.95% 0.0585 -0.1498)
OKLCHoklch(34.95% 0.161 291.3)
XYZxyz(6.7620, 3.6137, 22.5270)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C85 #61851C
analogous
#1C2D85 #401C85 #751C85
triadic
#401C85 #85401C #1C8540
tetradic
#401C85 #851C2D #61851C #1C8575
square
#401C85 #851C2D #61851C #1C8575
split-complementary
#401C85 #85751C #2D851C
monochromatic
#0F0720 #281152 #401C85 #5827B8 #7644D8

Accessibility & contrast

On white

12.19
#401C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C85
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C85#FFFFFF#000000##FFFFFF
##401C851.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#283950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401c85;
/* rgb */ color: rgb(64, 28, 133);
/* oklch */ color: oklch(35.0% 0.161 291.3);
Tailwind
colors: {
  custom: {
    50: '#7d5da9',
    500: '#401c85',
    950: '#000000',
  },
}
SCSS
$custom: #401c85;
$custom-light: #7d5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#401c85",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 260.571,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34953,
    "c": 0.16084,
    "h": 291.3
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#401C85
secondary
#91B845
accent
#E840AE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401C85

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

Preview Lab → · Contrast checker → · Palette generator →

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