#401D9E#401D9E

#401D9E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.189 H 285.3°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#401D9E
RGBrgb(64, 29, 158)
HSLhsl(256, 69%, 37%)
HSVhsv(256, 82%, 62%)
CMYKcmyk(59.5%, 81.6%, 0%, 38%)
CIE-LABlab(25.07, 48.53, -63.18)
CIE-LCHlch(25.07, 79.67, 307.53°)
OKLaboklab(37.61% 0.0497 -0.182)
OKLCHoklch(37.61% 0.189 285.3)
XYZxyz(8.7234, 4.4368, 32.7378)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D9E #7B9E1D
analogous
#1D3B9E #401D9E #811D9E
triadic
#401D9E #9E401D #1D9E40
tetradic
#401D9E #9E1D3B #7B9E1D #1D9E81
square
#401D9E #9E1D3B #7B9E1D #1D9E81
split-complementary
#401D9E #9E811D #3B9E1D
monochromatic
#160A37 #2B146A #401D9E #5526D2 #7B56E0

Accessibility & contrast

On white

11.13
#401D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#401D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D9E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D9E#FFFFFF#000000##FFFFFF
##401D9E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#08445E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401d9e;
/* rgb */ color: rgb(64, 29, 158);
/* oklch */ color: oklch(37.6% 0.189 285.3);
Tailwind
colors: {
  custom: {
    50: '#815fbc',
    500: '#401d9e',
    950: '#000000',
  },
}
SCSS
$custom: #401d9e;
$custom-light: #815fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#401d9e",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 256.279,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37609,
    "c": 0.18872,
    "h": 285.3
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#401D9E
secondary
#A5C354
accent
#EC3CBC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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