#401D71#401D71

#401D71 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.136 H 297.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#401D71
RGBrgb(64, 29, 113)
HSLhsl(265, 59%, 28%)
HSVhsv(265, 74%, 44%)
CMYKcmyk(43.4%, 74.3%, 0%, 55.7%)
CIE-LABlab(20.68, 35.70, -42.17)
CIE-LCHlch(20.68, 55.25, 310.25°)
OKLaboklab(33.2% 0.0627 -0.1205)
OKLCHoklch(33.2% 0.136 297.5)
XYZxyz(5.5336, 3.1609, 15.9381)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D71 #4E711D
analogous
#1D2471 #401D71 #6A1D71
triadic
#401D71 #71401D #1D7140
tetradic
#401D71 #711D24 #4E711D #1D716A
square
#401D71 #711D24 #4E711D #1D716A
split-complementary
#401D71 #716A1D #24711D
monochromatic
#0E0618 #241140 #401D71 #5C29A2 #783CCD

Accessibility & contrast

On white

12.87
#401D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D71
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D71#FFFFFF#000000##FFFFFF
##401D711.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#343245
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401d71;
/* rgb */ color: rgb(64, 29, 113);
/* oklch */ color: oklch(33.2% 0.136 297.5);
Tailwind
colors: {
  custom: {
    50: '#7a5c9b',
    500: '#401d71',
    950: '#000000',
  },
}
SCSS
$custom: #401d71;
$custom-light: #7a5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401d71",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 265,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33203,
    "c": 0.13583,
    "h": 297.5
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#401D71
secondary
#7DA544
accent
#E245A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D71

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

Preview Lab → · Contrast checker → · Palette generator →

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