#401D79#401D79

#401D79 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 294.7°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#401D79
RGBrgb(64, 29, 121)
HSLhsl(263, 61%, 29%)
HSVhsv(263, 76%, 47%)
CMYKcmyk(47.1%, 76%, 0%, 52.5%)
CIE-LABlab(21.39, 37.96, -46.14)
CIE-LCHlch(21.39, 59.75, 309.45°)
OKLaboklab(33.93% 0.0609 -0.1322)
OKLCHoklch(33.93% 0.146 294.7)
XYZxyz(6.0040, 3.3490, 18.4155)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D79 #56791D
analogous
#1D2879 #401D79 #6E1D79
triadic
#401D79 #79401D #1D7940
tetradic
#401D79 #791D28 #56791D #1D796E
square
#401D79 #791D28 #56791D #1D796E
split-complementary
#401D79 #796E1D #28791D
monochromatic
#0D0619 #261148 #401D79 #5A29AA #773FD1

Accessibility & contrast

On white

12.58
#401D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D79
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D79#FFFFFF#000000##FFFFFF
##401D791.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#303549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401d79;
/* rgb */ color: rgb(64, 29, 121);
/* oklch */ color: oklch(33.9% 0.145 294.7);
Tailwind
colors: {
  custom: {
    50: '#7b5da1',
    500: '#401d79',
    950: '#000000',
  },
}
SCSS
$custom: #401d79;
$custom-light: #7b5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#401d79",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 262.826,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.1455,
    "h": 294.7
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#401D79
secondary
#85AD45
accent
#E443A7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401D79

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

Preview Lab → · Contrast checker → · Palette generator →

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