#401E9D#401E9D

#401E9D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.187 H 285.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#401E9D
RGBrgb(64, 30, 157)
HSLhsl(256, 68%, 37%)
HSVhsv(256, 81%, 62%)
CMYKcmyk(59.2%, 80.9%, 0%, 38.4%)
CIE-LABlab(25.11, 47.80, -62.49)
CIE-LCHlch(25.11, 78.68, 307.41°)
OKLaboklab(37.61% 0.0495 -0.18)
OKLCHoklch(37.61% 0.187 285.4)
XYZxyz(8.6626, 4.4523, 32.2947)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E9D #7B9D1E
analogous
#1E3C9D #401E9D #801E9D
triadic
#401E9D #9D401E #1E9D40
tetradic
#401E9D #9D1E3C #7B9D1E #1E9D80
square
#401E9D #9D1E3C #7B9D1E #1E9D80
split-complementary
#401E9D #9D801E #3C9D1E
monochromatic
#160A36 #2B146A #401E9D #5528D0 #7B57DF

Accessibility & contrast

On white

11.11
#401E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E9D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E9D#FFFFFF#000000##FFFFFF
##401E9D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#0A445E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401e9d;
/* rgb */ color: rgb(64, 30, 157);
/* oklch */ color: oklch(37.6% 0.187 285.4);
Tailwind
colors: {
  custom: {
    50: '#815fbb',
    500: '#401e9d',
    950: '#000000',
  },
}
SCSS
$custom: #401e9d;
$custom-light: #815fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#401e9d",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 256.063,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37611,
    "c": 0.18672,
    "h": 285.4
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#401E9D
secondary
#A5C254
accent
#EB3DBC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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