#401E7D#401E7D

#401E7D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.149 H 293.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#401E7D
RGBrgb(64, 30, 125)
HSLhsl(261, 61%, 30%)
HSVhsv(261, 76%, 49%)
CMYKcmyk(48.8%, 76%, 0%, 51%)
CIE-LABlab(21.94, 38.59, -47.78)
CIE-LCHlch(21.94, 61.42, 308.92°)
OKLaboklab(34.43% 0.0589 -0.137)
OKLCHoklch(34.43% 0.149 293.3)
XYZxyz(6.2793, 3.4990, 19.7426)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E7D #5B7D1E
analogous
#1E2B7D #401E7D #6F1E7D
triadic
#401E7D #7D401E #1E7D40
tetradic
#401E7D #7D1E2B #5B7D1E #1E7D6F
square
#401E7D #7D1E2B #5B7D1E #1E7D6F
split-complementary
#401E7D #7D6F1E #2B7D1E
monochromatic
#0D061A #27124C #401E7D #592AAE #7643D2

Accessibility & contrast

On white

12.35
#401E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E7D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E7D#FFFFFF#000000##FFFFFF
##401E7D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#2D374C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401e7d;
/* rgb */ color: rgb(64, 30, 125);
/* oklch */ color: oklch(34.4% 0.149 293.3);
Tailwind
colors: {
  custom: {
    50: '#7b5da3',
    500: '#401e7d',
    950: '#000000',
  },
}
SCSS
$custom: #401e7d;
$custom-light: #7b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#401e7d",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 261.474,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34432,
    "c": 0.14914,
    "h": 293.3
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#401E7D
secondary
#8AB046
accent
#E443AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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