#401E6E#401E6E

#401E6E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.131 H 298.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#401E6E
RGBrgb(64, 30, 110)
HSLhsl(266, 57%, 27%)
HSVhsv(266, 73%, 43%)
CMYKcmyk(41.8%, 72.7%, 0%, 56.9%)
CIE-LABlab(20.61, 34.31, -40.33)
CIE-LCHlch(20.61, 52.95, 310.39°)
OKLaboklab(33.08% 0.0622 -0.1151)
OKLCHoklch(33.08% 0.131 298.4)
XYZxyz(5.3924, 3.1442, 15.0716)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E6E #4C6E1E
analogous
#1E246E #401E6E #681E6E
triadic
#401E6E #6E401E #1E6E40
tetradic
#401E6E #6E1E24 #4C6E1E #1E6E68
square
#401E6E #6E1E24 #4C6E1E #1E6E68
split-complementary
#401E6E #6E681E #246E1E
monochromatic
#0E0718 #24113E #401E6E #5C2B9E #793CCA

Accessibility & contrast

On white

12.89
#401E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E6E
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E6E#FFFFFF#000000##FFFFFF
##401E6E1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#353143
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401e6e;
/* rgb */ color: rgb(64, 30, 110);
/* oklch */ color: oklch(33.1% 0.131 298.4);
Tailwind
colors: {
  custom: {
    50: '#795d98',
    500: '#401e6e',
    950: '#000000',
  },
}
SCSS
$custom: #401e6e;
$custom-light: #795d98;
$custom-dark: #000000;
JSON
{
  "hex": "#401e6e",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 265.5,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33077,
    "c": 0.13083,
    "h": 298.4
  },
  "luminance": 0.03144
}

Semantic roles & 50–950 ramp

primary
#401E6E
secondary
#7BA246
accent
#E0479F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #401E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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