#401B88#401B88

#401B88 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 290.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#401B88
RGBrgb(64, 27, 136)
HSLhsl(260, 67%, 32%)
HSVhsv(260, 80%, 53%)
CMYKcmyk(52.9%, 80.1%, 0%, 46.7%)
CIE-LABlab(22.48, 43.20, -53.83)
CIE-LCHlch(22.48, 69.02, 308.75°)
OKLaboklab(35.14% 0.0583 -0.1547)
OKLCHoklch(35.14% 0.165 290.7)
XYZxyz(6.9489, 3.6511, 23.6264)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B88 #63881B
analogous
#1B2D88 #401B88 #771B88
triadic
#401B88 #88401B #1B8840
tetradic
#401B88 #881B2D #63881B #1B8877
square
#401B88 #881B2D #63881B #1B8877
split-complementary
#401B88 #88771B #2D881B
monochromatic
#100722 #281155 #401B88 #5825BB #7744DA

Accessibility & contrast

On white

12.14
#401B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#401B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B88
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B88#FFFFFF#000000##FFFFFF
##401B881.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#263A51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401b88;
/* rgb */ color: rgb(64, 27, 136);
/* oklch */ color: oklch(35.1% 0.165 290.7);
Tailwind
colors: {
  custom: {
    50: '#7d5cac',
    500: '#401b88',
    950: '#000000',
  },
}
SCSS
$custom: #401b88;
$custom-light: #7d5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#401b88",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 260.367,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35135,
    "c": 0.16534,
    "h": 290.7
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#401B88
secondary
#93BB44
accent
#EA3EAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401B88

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

Preview Lab → · Contrast checker → · Palette generator →

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