#401A9E#401A9E

#401A9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.191 H 285.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#401A9E
RGBrgb(64, 26, 158)
HSLhsl(257, 72%, 36%)
HSVhsv(257, 84%, 62%)
CMYKcmyk(59.5%, 83.5%, 0%, 38%)
CIE-LABlab(24.63, 49.80, -63.90)
CIE-LCHlch(24.63, 81.02, 307.93°)
OKLaboklab(37.31% 0.0515 -0.1841)
OKLCHoklch(37.31% 0.191 285.6)
XYZxyz(8.6534, 4.2969, 32.7145)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A9E #789E1A
analogous
#1A369E #401A9E #821A9E
triadic
#401A9E #9E401A #1A9E40
tetradic
#401A9E #9E1A36 #789E1A #1A9E82
square
#401A9E #9E1A36 #789E1A #1A9E82
split-complementary
#401A9E #9E821A #369E1A
monochromatic
#150935 #2B1169 #401A9E #5523D3 #7A50E2

Accessibility & contrast

On white

11.29
#401A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#401A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A9E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A9E#FFFFFF#000000##FFFFFF
##401A9E1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#08435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401a9e;
/* rgb */ color: rgb(64, 26, 158);
/* oklch */ color: oklch(37.3% 0.191 285.6);
Tailwind
colors: {
  custom: {
    50: '#815dbc',
    500: '#401a9e',
    950: '#000000',
  },
}
SCSS
$custom: #401a9e;
$custom-light: #815dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#401a9e",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 257.273,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37308,
    "c": 0.19117,
    "h": 285.6
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#401A9E
secondary
#A3C54F
accent
#EE39BA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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