#401D6F#401D6F

#401D6F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.133 H 298.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#401D6F
RGBrgb(64, 29, 111)
HSLhsl(266, 59%, 27%)
HSVhsv(266, 74%, 44%)
CMYKcmyk(42.3%, 73.9%, 0%, 56.5%)
CIE-LABlab(20.50, 35.13, -41.16)
CIE-LCHlch(20.50, 54.11, 310.49°)
OKLaboklab(33.03% 0.0631 -0.1175)
OKLCHoklch(33.03% 0.133 298.2)
XYZxyz(5.4222, 3.1163, 15.3517)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D6F #4C6F1D
analogous
#1D236F #401D6F #691D6F
triadic
#401D6F #6F401D #1D6F40
tetradic
#401D6F #6F1D23 #4C6F1D #1D6F69
square
#401D6F #6F1D23 #4C6F1D #1D6F69
split-complementary
#401D6F #6F691D #236F1D
monochromatic
#0E0618 #24103E #401D6F #5C2AA0 #793BCC

Accessibility & contrast

On white

12.94
#401D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D6F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D6F#FFFFFF#000000##FFFFFF
##401D6F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#353144
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401d6f;
/* rgb */ color: rgb(64, 29, 111);
/* oklch */ color: oklch(33.0% 0.133 298.2);
Tailwind
colors: {
  custom: {
    50: '#7a5c99',
    500: '#401d6f',
    950: '#000000',
  },
}
SCSS
$custom: #401d6f;
$custom-light: #7a5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#401d6f",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 265.61,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33026,
    "c": 0.13339,
    "h": 298.2
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#401D6F
secondary
#7BA344
accent
#E2469F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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