#401E6A#401E6A

#401E6A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.126 H 299.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#401E6A
RGBrgb(64, 30, 106)
HSLhsl(267, 56%, 27%)
HSVhsv(267, 72%, 42%)
CMYKcmyk(39.6%, 71.7%, 0%, 58.4%)
CIE-LABlab(20.28, 33.19, -38.28)
CIE-LCHlch(20.28, 50.66, 310.93°)
OKLaboklab(32.73% 0.0628 -0.1091)
OKLCHoklch(32.73% 0.126 299.9)
XYZxyz(5.1795, 3.0591, 13.9505)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E6A #486A1E
analogous
#1E226A #401E6A #661E6A
triadic
#401E6A #6A401E #1E6A40
tetradic
#401E6A #6A1E22 #486A1E #1E6A66
square
#401E6A #6A1E22 #486A1E #1E6A66
split-complementary
#401E6A #6A661E #226A1E
monochromatic
#0E0718 #23113A #401E6A #5D2C9A #7A3BC7

Accessibility & contrast

On white

13.03
#401E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E6A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E6A#FFFFFF#000000##FFFFFF
##401E6A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#003068
Tritanopia (blue-blind)
#373041
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401e6a;
/* rgb */ color: rgb(64, 30, 106);
/* oklch */ color: oklch(32.7% 0.126 299.9);
Tailwind
colors: {
  custom: {
    50: '#795d95',
    500: '#401e6a',
    950: '#000000',
  },
}
SCSS
$custom: #401e6a;
$custom-light: #795d95;
$custom-dark: #000000;
JSON
{
  "hex": "#401e6a",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 266.842,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32734,
    "c": 0.12587,
    "h": 299.9
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#401E6A
secondary
#779E45
accent
#DF499C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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