#401A77#401A77

#401A77 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.147 H 296.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#401A77
RGBrgb(64, 26, 119)
HSLhsl(265, 64%, 28%)
HSVhsv(265, 78%, 47%)
CMYKcmyk(46.2%, 78.2%, 0%, 53.3%)
CIE-LABlab(20.68, 38.91, -46.03)
CIE-LCHlch(20.68, 60.27, 310.21°)
OKLaboklab(33.37% 0.0642 -0.1318)
OKLCHoklch(33.37% 0.147 296)
XYZxyz(5.8126, 3.1606, 17.7530)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A77 #51771A
analogous
#1A2277 #401A77 #6E1A77
triadic
#401A77 #77401A #1A7740
tetradic
#401A77 #771A22 #51771A #1A776E
square
#401A77 #771A22 #51771A #1A776E
split-complementary
#401A77 #776E1A #22771A
monochromatic
#0E0519 #250F45 #401A77 #5B25A9 #7738D3

Accessibility & contrast

On white

12.87
#401A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A77
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A77#FFFFFF#000000##FFFFFF
##401A771.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#313347
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401a77;
/* rgb */ color: rgb(64, 26, 119);
/* oklch */ color: oklch(33.4% 0.147 296.0);
Tailwind
colors: {
  custom: {
    50: '#7b5b9f',
    500: '#401a77',
    950: '#000000',
  },
}
SCSS
$custom: #401a77;
$custom-light: #7b5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#401a77",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 264.516,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.14663,
    "h": 296
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#401A77
secondary
#80AC41
accent
#E741A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401A77

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

Preview Lab → · Contrast checker → · Palette generator →

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