#401B54#401B54

#401B54 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.103 H 311.7°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#401B54
RGBrgb(64, 27, 84)
HSLhsl(279, 51%, 22%)
HSVhsv(279, 68%, 33%)
CMYKcmyk(23.8%, 67.9%, 0%, 67.1%)
CIE-LABlab(17.98, 28.97, -27.40)
CIE-LCHlch(17.98, 39.88, 316.59°)
OKLaboklab(30.54% 0.0688 -0.0771)
OKLCHoklch(30.54% 0.103 311.7)
XYZxyz(4.1062, 2.5140, 8.6547)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B54 #2F541B
analogous
#241B54 #401B54 #541B4C
triadic
#401B54 #54401B #1B5440
tetradic
#401B54 #54241B #2F541B #1B4C54
square
#401B54 #54241B #2F541B #1B4C54
split-complementary
#401B54 #4C541B #1B5424
monochromatic
#120717 #1D0C26 #401B54 #632A82 #8739B1

Accessibility & contrast

On white

13.97
#401B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B54
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B54#FFFFFF#000000##FFFFFF
##401B541.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042A56
Deuteranopia (green-blind)
#162D53
Tritanopia (blue-blind)
#3E2634
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b54;
/* rgb */ color: rgb(64, 27, 84);
/* oklch */ color: oklch(30.5% 0.103 311.7);
Tailwind
colors: {
  custom: {
    50: '#775a84',
    500: '#401b54',
    950: '#000000',
  },
}
SCSS
$custom: #401b54;
$custom-light: #775a84;
$custom-dark: #000000;
JSON
{
  "hex": "#401b54",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 278.947,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30544,
    "c": 0.10335,
    "h": 311.7
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#401B54
secondary
#5B8A41
accent
#DB4D7F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B54

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

Preview Lab → · Contrast checker → · Palette generator →

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