#401A76#401A76

#401A76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.145 H 296.3°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#401A76
RGBrgb(64, 26, 118)
HSLhsl(265, 64%, 28%)
HSVhsv(265, 78%, 46%)
CMYKcmyk(45.8%, 78%, 0%, 53.7%)
CIE-LABlab(20.58, 38.63, -45.54)
CIE-LCHlch(20.58, 59.71, 310.31°)
OKLaboklab(33.28% 0.0645 -0.1304)
OKLCHoklch(33.28% 0.145 296.3)
XYZxyz(5.7529, 3.1367, 17.4384)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A76 #50761A
analogous
#1A2276 #401A76 #6E1A76
triadic
#401A76 #76401A #1A7640
tetradic
#401A76 #761A22 #50761A #1A766E
square
#401A76 #761A22 #50761A #1A766E
split-complementary
#401A76 #766E1A #22761A
monochromatic
#0E0619 #250F44 #401A76 #5B25A8 #7837D3

Accessibility & contrast

On white

12.90
#401A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A76
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A76#FFFFFF#000000##FFFFFF
##401A761.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#313247
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401a76;
/* rgb */ color: rgb(64, 26, 118);
/* oklch */ color: oklch(33.3% 0.145 296.3);
Tailwind
colors: {
  custom: {
    50: '#7b5b9e',
    500: '#401a76',
    950: '#000000',
  },
}
SCSS
$custom: #401a76;
$custom-light: #7b5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401a76",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 264.783,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33276,
    "c": 0.14546,
    "h": 296.3
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

primary
#401A76
secondary
#7FAB41
accent
#E741A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A76

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

Preview Lab → · Contrast checker → · Palette generator →

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