#401B90#401B90

#401B90 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.175 H 288.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#401B90
RGBrgb(64, 27, 144)
HSLhsl(259, 68%, 34%)
HSVhsv(259, 81%, 56%)
CMYKcmyk(55.6%, 81.3%, 0%, 43.5%)
CIE-LABlab(23.29, 45.45, -57.49)
CIE-LCHlch(23.29, 73.29, 308.33°)
OKLaboklab(35.94% 0.0557 -0.1654)
OKLCHoklch(35.94% 0.175 288.6)
XYZxyz(7.5388, 3.8871, 26.7332)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B90 #6B901B
analogous
#1B3190 #401B90 #7A1B90
triadic
#401B90 #90401B #1B9040
tetradic
#401B90 #901B31 #6B901B #1B907A
square
#401B90 #901B31 #6B901B #1B907A
split-complementary
#401B90 #907A1B #31901B
monochromatic
#120829 #29115C #401B90 #5725C4 #7749DD

Accessibility & contrast

On white

11.82
#401B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#401B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B90
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B90#FFFFFF#000000##FFFFFF
##401B901.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#1F3D56
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401b90;
/* rgb */ color: rgb(64, 27, 144);
/* oklch */ color: oklch(35.9% 0.175 288.6);
Tailwind
colors: {
  custom: {
    50: '#7f5db2',
    500: '#401b90',
    950: '#000000',
  },
}
SCSS
$custom: #401b90;
$custom-light: #7f5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#401b90",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 258.974,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.17453,
    "h": 288.6
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#401B90
secondary
#99BF48
accent
#EB3DB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401B90

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

Preview Lab → · Contrast checker → · Palette generator →

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