#401A90#401A90

#401A90 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.175 H 288.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#401A90
RGBrgb(64, 26, 144)
HSLhsl(259, 69%, 33%)
HSVhsv(259, 82%, 56%)
CMYKcmyk(55.6%, 81.9%, 0%, 43.5%)
CIE-LABlab(23.14, 45.90, -57.74)
CIE-LCHlch(23.14, 73.76, 308.48°)
OKLaboklab(35.84% 0.0564 -0.1661)
OKLCHoklch(35.84% 0.175 288.7)
XYZxyz(7.5163, 3.8420, 26.7257)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A90 #6A901A
analogous
#1A2F90 #401A90 #7B1A90
triadic
#401A90 #90401A #1A9040
tetradic
#401A90 #901A2F #6A901A #1A907B
square
#401A90 #901A2F #6A901A #1A907B
split-complementary
#401A90 #907B1A #2F901A
monochromatic
#120728 #29115C #401A90 #5723C4 #7747DE

Accessibility & contrast

On white

11.88
#401A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#401A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A90
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A90#FFFFFF#000000##FFFFFF
##401A901.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401a90;
/* rgb */ color: rgb(64, 26, 144);
/* oklch */ color: oklch(35.8% 0.175 288.7);
Tailwind
colors: {
  custom: {
    50: '#7f5cb2',
    500: '#401a90',
    950: '#000000',
  },
}
SCSS
$custom: #401a90;
$custom-light: #7f5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401a90",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 259.322,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35839,
    "c": 0.17543,
    "h": 288.7
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#401A90
secondary
#98BF47
accent
#EC3CB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401A90

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

Preview Lab → · Contrast checker → · Palette generator →

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