#401E71#401E71

#401E71 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.135 H 297.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#401E71
RGBrgb(64, 30, 113)
HSLhsl(265, 58%, 28%)
HSVhsv(265, 73%, 44%)
CMYKcmyk(43.4%, 73.5%, 0%, 55.7%)
CIE-LABlab(20.87, 35.16, -41.86)
CIE-LCHlch(20.87, 54.66, 310.03°)
OKLaboklab(33.34% 0.0616 -0.1196)
OKLCHoklch(33.34% 0.135 297.2)
XYZxyz(5.5585, 3.2107, 15.9465)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E71 #4F711E
analogous
#1E2671 #401E71 #691E71
triadic
#401E71 #71401E #1E7140
tetradic
#401E71 #711E26 #4F711E #1E7169
square
#401E71 #711E26 #4F711E #1E7169
split-complementary
#401E71 #71691E #26711E
monochromatic
#0E0618 #251141 #401E71 #5B2BA1 #783ECC

Accessibility & contrast

On white

12.79
#401E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E71
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E71#FFFFFF#000000##FFFFFF
##401E711.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.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: #401e71;
/* rgb */ color: rgb(64, 30, 113);
/* oklch */ color: oklch(33.3% 0.135 297.2);
Tailwind
colors: {
  custom: {
    50: '#7a5d9a',
    500: '#401e71',
    950: '#000000',
  },
}
SCSS
$custom: #401e71;
$custom-light: #7a5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#401e71",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 264.578,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33339,
    "c": 0.13453,
    "h": 297.2
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#401E71
secondary
#7EA546
accent
#E147A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401E71

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

Preview Lab → · Contrast checker → · Palette generator →

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