#401C90#401C90

#401C90 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.174 H 288.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#401C90
RGBrgb(64, 28, 144)
HSLhsl(259, 67%, 34%)
HSVhsv(259, 81%, 56%)
CMYKcmyk(55.6%, 80.6%, 0%, 43.5%)
CIE-LABlab(23.45, 45.00, -57.23)
CIE-LCHlch(23.45, 72.80, 308.18°)
OKLaboklab(36.05% 0.055 -0.1646)
OKLCHoklch(36.05% 0.174 288.5)
XYZxyz(7.5622, 3.9337, 26.7410)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C90 #6C901C
analogous
#1C3290 #401C90 #7A1C90
triadic
#401C90 #90401C #1C9040
tetradic
#401C90 #901C32 #6C901C #1C907A
square
#401C90 #901C32 #6C901C #1C907A
split-complementary
#401C90 #907A1C #32901C
monochromatic
#12082A #29125D #401C90 #5726C3 #784ADC

Accessibility & contrast

On white

11.75
#401C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#401C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C90
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C90#FFFFFF#000000##FFFFFF
##401C901.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c90;
/* rgb */ color: rgb(64, 28, 144);
/* oklch */ color: oklch(36.1% 0.174 288.5);
Tailwind
colors: {
  custom: {
    50: '#7f5db2',
    500: '#401c90',
    950: '#000000',
  },
}
SCSS
$custom: #401c90;
$custom-light: #7f5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#401c90",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 258.621,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36053,
    "c": 0.1736,
    "h": 288.5
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#401C90
secondary
#9ABE4A
accent
#EA3DB5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401C90

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

Preview Lab → · Contrast checker → · Palette generator →

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