#401F79#401F79

#401F79 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.143 H 294.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#401F79
RGBrgb(64, 31, 121)
HSLhsl(262, 59%, 30%)
HSVhsv(262, 74%, 47%)
CMYKcmyk(47.1%, 74.4%, 0%, 52.5%)
CIE-LABlab(21.76, 36.91, -45.53)
CIE-LCHlch(21.76, 58.61, 309.03°)
OKLaboklab(34.19% 0.0589 -0.1304)
OKLCHoklch(34.19% 0.143 294.3)
XYZxyz(6.0546, 3.4503, 18.4324)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F79 #58791F
analogous
#1F2B79 #401F79 #6D1F79
triadic
#401F79 #79401F #1F7940
tetradic
#401F79 #791F2B #58791F #1F796D
square
#401F79 #791F2B #58791F #1F796D
split-complementary
#401F79 #796D1F #2B791F
monochromatic
#0D0618 #261348 #401F79 #5A2BAA #7743CF

Accessibility & contrast

On white

12.43
#401F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F79
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F79#FFFFFF#000000##FFFFFF
##401F791.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#30364A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401f79;
/* rgb */ color: rgb(64, 31, 121);
/* oklch */ color: oklch(34.2% 0.143 294.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ea0',
    500: '#401f79',
    950: '#000000',
  },
}
SCSS
$custom: #401f79;
$custom-light: #7b5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#401f79",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 262,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.14307,
    "h": 294.3
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#401F79
secondary
#87AC47
accent
#E245A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401F79

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

Preview Lab → · Contrast checker → · Palette generator →

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