#401884#401884

#401884 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.164 H 292.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#401884
RGBrgb(64, 24, 132)
HSLhsl(262, 69%, 31%)
HSVhsv(262, 82%, 52%)
CMYKcmyk(51.5%, 81.8%, 0%, 48.2%)
CIE-LABlab(21.61, 43.44, -52.75)
CIE-LCHlch(21.61, 68.33, 309.47°)
OKLaboklab(34.41% 0.0619 -0.1515)
OKLCHoklch(34.41% 0.164 292.2)
XYZxyz(6.6047, 3.4090, 22.1353)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401884 #5C8418
analogous
#182684 #401884 #761884
triadic
#401884 #844018 #188440
tetradic
#401884 #841826 #5C8418 #188476
square
#401884 #841826 #5C8418 #188476
split-complementary
#401884 #847618 #268418
monochromatic
#0E051C #270F50 #401884 #5921B8 #763BDB

Accessibility & contrast

On white

12.49
#401884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401884
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401884#FFFFFF#000000##FFFFFF
##4018841.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#29374E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401884;
/* rgb */ color: rgb(64, 24, 132);
/* oklch */ color: oklch(34.4% 0.164 292.2);
Tailwind
colors: {
  custom: {
    50: '#7d5ba9',
    500: '#401884',
    950: '#000000',
  },
}
SCSS
$custom: #401884;
$custom-light: #7d5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#401884",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 262.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.16366,
    "h": 292.2
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#401884
secondary
#8BB840
accent
#EC3CAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401884

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

Preview Lab → · Contrast checker → · Palette generator →

#401884 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva