#401E90#401E90

#401E90 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.172 H 288.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#401E90
RGBrgb(64, 30, 144)
HSLhsl(258, 66%, 34%)
HSVhsv(258, 79%, 56%)
CMYKcmyk(55.6%, 79.2%, 0%, 43.5%)
CIE-LABlab(23.78, 44.06, -56.69)
CIE-LCHlch(23.78, 71.80, 307.86°)
OKLaboklab(36.28% 0.0536 -0.1631)
OKLCHoklch(36.28% 0.172 288.2)
XYZxyz(7.6112, 4.0318, 26.7573)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E90 #6E901E
analogous
#1E3590 #401E90 #791E90
triadic
#401E90 #90401E #1E9040
tetradic
#401E90 #901E35 #6E901E #1E9079
square
#401E90 #901E35 #6E901E #1E9079
split-complementary
#401E90 #90791E #35901E
monochromatic
#13092B #29135D #401E90 #5729C3 #784EDA

Accessibility & contrast

On white

11.63
#401E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#401E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E90
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E90#FFFFFF#000000##FFFFFF
##401E901.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00368E
Tritanopia (blue-blind)
#1F3F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401e90;
/* rgb */ color: rgb(64, 30, 144);
/* oklch */ color: oklch(36.3% 0.172 288.2);
Tailwind
colors: {
  custom: {
    50: '#7e5eb2',
    500: '#401e90',
    950: '#000000',
  },
}
SCSS
$custom: #401e90;
$custom-light: #7e5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401e90",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 257.895,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36279,
    "c": 0.17168,
    "h": 288.2
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#401E90
secondary
#9BBD4D
accent
#E83FB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E90

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

Preview Lab → · Contrast checker → · Palette generator →

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