#401D77#401D77

#401D77 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.143 H 295.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#401D77
RGBrgb(64, 29, 119)
HSLhsl(263, 61%, 29%)
HSVhsv(263, 76%, 47%)
CMYKcmyk(46.2%, 75.6%, 0%, 53.3%)
CIE-LABlab(21.21, 37.39, -45.16)
CIE-LCHlch(21.21, 58.63, 309.63°)
OKLaboklab(33.75% 0.0613 -0.1293)
OKLCHoklch(33.75% 0.143 295.4)
XYZxyz(5.8826, 3.3005, 17.7763)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D77 #54771D
analogous
#1D2777 #401D77 #6D1D77
triadic
#401D77 #77401D #1D7740
tetradic
#401D77 #771D27 #54771D #1D776D
square
#401D77 #771D27 #54771D #1D776D
split-complementary
#401D77 #776D1D #27771D
monochromatic
#0D0619 #261146 #401D77 #5A29A8 #773ED0

Accessibility & contrast

On white

12.65
#401D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D77
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D77#FFFFFF#000000##FFFFFF
##401D771.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#313448
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401d77;
/* rgb */ color: rgb(64, 29, 119);
/* oklch */ color: oklch(33.7% 0.143 295.4);
Tailwind
colors: {
  custom: {
    50: '#7b5d9f',
    500: '#401d77',
    950: '#000000',
  },
}
SCSS
$custom: #401d77;
$custom-light: #7b5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#401d77",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 263.333,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.14309,
    "h": 295.4
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#401D77
secondary
#83AB45
accent
#E444A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401D77

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

Preview Lab → · Contrast checker → · Palette generator →

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