#401B87#401B87

#401B87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.164 H 290.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#401B87
RGBrgb(64, 27, 135)
HSLhsl(261, 67%, 32%)
HSVhsv(261, 80%, 53%)
CMYKcmyk(52.6%, 80%, 0%, 47.1%)
CIE-LABlab(22.38, 42.92, -53.37)
CIE-LCHlch(22.38, 68.48, 308.80°)
OKLaboklab(35.03% 0.0586 -0.1534)
OKLCHoklch(35.03% 0.164 290.9)
XYZxyz(6.8782, 3.6228, 23.2538)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B87 #62871B
analogous
#1B2C87 #401B87 #761B87
triadic
#401B87 #87401B #1B8740
tetradic
#401B87 #871B2C #62871B #1B8776
square
#401B87 #871B2C #62871B #1B8776
split-complementary
#401B87 #87761B #2C871B
monochromatic
#100721 #281154 #401B87 #5825BA #7743D9

Accessibility & contrast

On white

12.18
#401B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B87
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B87#FFFFFF#000000##FFFFFF
##401B871.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#273A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401b87;
/* rgb */ color: rgb(64, 27, 135);
/* oklch */ color: oklch(35.0% 0.164 290.9);
Tailwind
colors: {
  custom: {
    50: '#7d5cab',
    500: '#401b87',
    950: '#000000',
  },
}
SCSS
$custom: #401b87;
$custom-light: #7d5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#401b87",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 260.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35035,
    "c": 0.16419,
    "h": 290.9
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#401B87
secondary
#92BA44
accent
#EA3EAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401B87

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

Preview Lab → · Contrast checker → · Palette generator →

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