#401E88#401E88

#401E88 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.162 H 290.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#401E88
RGBrgb(64, 30, 136)
HSLhsl(259, 64%, 33%)
HSVhsv(259, 78%, 53%)
CMYKcmyk(52.9%, 77.9%, 0%, 46.7%)
CIE-LABlab(22.98, 41.76, -53.01)
CIE-LCHlch(22.98, 67.48, 308.23°)
OKLaboklab(35.49% 0.056 -0.1523)
OKLCHoklch(35.49% 0.162 290.2)
XYZxyz(7.0213, 3.7958, 23.6505)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E88 #66881E
analogous
#1E3188 #401E88 #751E88
triadic
#401E88 #88401E #1E8840
tetradic
#401E88 #881E31 #66881E #1E8875
square
#401E88 #881E31 #66881E #1E8875
split-complementary
#401E88 #88751E #31881E
monochromatic
#110824 #281356 #401E88 #5829BA #7749D7

Accessibility & contrast

On white

11.94
#401E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#401E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E88
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E88#FFFFFF#000000##FFFFFF
##401E881.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#263B52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401e88;
/* rgb */ color: rgb(64, 30, 136);
/* oklch */ color: oklch(35.5% 0.162 290.2);
Tailwind
colors: {
  custom: {
    50: '#7d5eac',
    500: '#401e88',
    950: '#000000',
  },
}
SCSS
$custom: #401e88;
$custom-light: #7d5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#401e88",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 259.245,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.16228,
    "h": 290.2
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#401E88
secondary
#95B949
accent
#E741B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #401E88

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

Preview Lab → · Contrast checker → · Palette generator →

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