#401E79#401E79

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

Color values

HEX#401E79
RGBrgb(64, 30, 121)
HSLhsl(262, 60%, 30%)
HSVhsv(262, 75%, 47%)
CMYKcmyk(47.1%, 75.2%, 0%, 52.5%)
CIE-LABlab(21.58, 37.44, -45.84)
CIE-LCHlch(21.58, 59.19, 309.25°)
OKLaboklab(34.06% 0.0599 -0.1313)
OKLCHoklch(34.06% 0.144 294.5)
XYZxyz(6.0289, 3.3988, 18.4238)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E79 #57791E
analogous
#1E2979 #401E79 #6E1E79
triadic
#401E79 #79401E #1E7940
tetradic
#401E79 #791E29 #57791E #1E796E
square
#401E79 #791E29 #57791E #1E796E
split-complementary
#401E79 #796E1E #29791E
monochromatic
#0D0619 #261248 #401E79 #5A2AAA #7741D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401E79#FFFFFF#000000##FFFFFF
##401E791.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)
#00357C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#303649
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401e79;
/* rgb */ color: rgb(64, 30, 121);
/* oklch */ color: oklch(34.1% 0.144 294.5);
Tailwind
colors: {
  custom: {
    50: '#7b5da1',
    500: '#401e79',
    950: '#000000',
  },
}
SCSS
$custom: #401e79;
$custom-light: #7b5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#401e79",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 262.418,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3406,
    "c": 0.1443,
    "h": 294.5
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#401E79
secondary
#86AD46
accent
#E344A8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E79

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

Preview Lab → · Contrast checker → · Palette generator →

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