#401B55#401B55

#401B55 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.105 H 311.1°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#401B55
RGBrgb(64, 27, 85)
HSLhsl(278, 52%, 22%)
HSVhsv(278, 68%, 33%)
CMYKcmyk(24.7%, 68.2%, 0%, 66.7%)
CIE-LABlab(18.05, 29.22, -27.96)
CIE-LCHlch(18.05, 40.45, 316.26°)
OKLaboklab(30.62% 0.0688 -0.0788)
OKLCHoklch(30.62% 0.105 311.1)
XYZxyz(4.1457, 2.5298, 8.8625)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B55 #30551B
analogous
#231B55 #401B55 #551B4D
triadic
#401B55 #55401B #1B5540
tetradic
#401B55 #55231B #30551B #1B4D55
square
#401B55 #55231B #30551B #1B4D55
split-complementary
#401B55 #4D551B #1B5523
monochromatic
#110717 #1D0C27 #401B55 #632A83 #8639B2

Accessibility & contrast

On white

13.94
#401B55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401B55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B55
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B55#FFFFFF#000000##FFFFFF
##401B551.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022A57
Deuteranopia (green-blind)
#152D54
Tritanopia (blue-blind)
#3D2635
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b55;
/* rgb */ color: rgb(64, 27, 85);
/* oklch */ color: oklch(30.6% 0.105 311.1);
Tailwind
colors: {
  custom: {
    50: '#775a85',
    500: '#401b55',
    950: '#000000',
  },
}
SCSS
$custom: #401b55;
$custom-light: #775a85;
$custom-dark: #000000;
JSON
{
  "hex": "#401b55",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 85
  },
  "hsl": {
    "h": 278.276,
    "s": 51.786,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30618,
    "c": 0.10456,
    "h": 311.1
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#401B55
secondary
#5C8B41
accent
#DB4D80
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B55

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

Preview Lab → · Contrast checker → · Palette generator →

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