#401C7D#401C7D

#401C7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.151 H 293.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#401C7D
RGBrgb(64, 28, 125)
HSLhsl(262, 63%, 30%)
HSVhsv(262, 78%, 49%)
CMYKcmyk(48.8%, 77.6%, 0%, 51%)
CIE-LABlab(21.58, 39.60, -48.37)
CIE-LCHlch(21.58, 62.52, 309.31°)
OKLaboklab(34.18% 0.0608 -0.1387)
OKLCHoklch(34.18% 0.151 293.7)
XYZxyz(6.2303, 3.4010, 19.7262)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C7D #597D1C
analogous
#1C287D #401C7D #711C7D
triadic
#401C7D #7D401C #1C7D40
tetradic
#401C7D #7D1C28 #597D1C #1C7D71
square
#401C7D #7D1C28 #597D1C #1C7D71
split-complementary
#401C7D #7D711C #287D1C
monochromatic
#0D0619 #26114B #401C7D #5A27AF #773FD4

Accessibility & contrast

On white

12.50
#401C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C7D
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C7D#FFFFFF#000000##FFFFFF
##401C7D1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2E364B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401c7d;
/* rgb */ color: rgb(64, 28, 125);
/* oklch */ color: oklch(34.2% 0.151 293.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ca4',
    500: '#401c7d',
    950: '#000000',
  },
}
SCSS
$custom: #401c7d;
$custom-light: #7c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#401c7d",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 262.268,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.3418,
    "c": 0.15143,
    "h": 293.7
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#401C7D
secondary
#88B144
accent
#E641A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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