#401B77#401B77

#401B77 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.145 H 295.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#401B77
RGBrgb(64, 27, 119)
HSLhsl(264, 63%, 29%)
HSVhsv(264, 77%, 47%)
CMYKcmyk(46.2%, 77.3%, 0%, 53.3%)
CIE-LABlab(20.85, 38.41, -45.74)
CIE-LCHlch(20.85, 59.73, 310.02°)
OKLaboklab(33.49% 0.0633 -0.131)
OKLCHoklch(33.49% 0.145 295.8)
XYZxyz(5.8352, 3.2056, 17.7605)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B77 #52771B
analogous
#1B2477 #401B77 #6E1B77
triadic
#401B77 #77401B #1B7740
tetradic
#401B77 #771B24 #52771B #1B776E
square
#401B77 #771B24 #52771B #1B776E
split-complementary
#401B77 #776E1B #24771B
monochromatic
#0D0619 #251045 #401B77 #5B26A9 #773AD2

Accessibility & contrast

On white

12.80
#401B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B77
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B77#FFFFFF#000000##FFFFFF
##401B771.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b77;
/* rgb */ color: rgb(64, 27, 119);
/* oklch */ color: oklch(33.5% 0.145 295.8);
Tailwind
colors: {
  custom: {
    50: '#7b5b9f',
    500: '#401b77',
    950: '#000000',
  },
}
SCSS
$custom: #401b77;
$custom-light: #7b5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#401b77",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 264.13,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33492,
    "c": 0.14548,
    "h": 295.8
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#401B77
secondary
#81AB42
accent
#E642A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401B77

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

Preview Lab → · Contrast checker → · Palette generator →

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