#401D6E#401D6E

#401D6E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.132 H 298.6°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#401D6E
RGBrgb(64, 29, 110)
HSLhsl(266, 58%, 27%)
HSVhsv(266, 74%, 43%)
CMYKcmyk(41.8%, 73.6%, 0%, 56.9%)
CIE-LABlab(20.42, 34.85, -40.65)
CIE-LCHlch(20.42, 53.55, 310.61°)
OKLaboklab(32.94% 0.0633 -0.116)
OKLCHoklch(32.94% 0.132 298.6)
XYZxyz(5.3675, 3.0944, 15.0633)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D6E #4B6E1D
analogous
#1D236E #401D6E #691D6E
triadic
#401D6E #6E401D #1D6E40
tetradic
#401D6E #6E1D23 #4B6E1D #1D6E69
square
#401D6E #6E1D23 #4B6E1D #1D6E69
split-complementary
#401D6E #6E691D #236E1D
monochromatic
#0E0618 #24103E #401D6E #5C2A9E #793ACB

Accessibility & contrast

On white

12.97
#401D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D6E
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D6E#FFFFFF#000000##FFFFFF
##401D6E1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#353143
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401d6e;
/* rgb */ color: rgb(64, 29, 110);
/* oklch */ color: oklch(32.9% 0.132 298.6);
Tailwind
colors: {
  custom: {
    50: '#795c98',
    500: '#401d6e',
    950: '#000000',
  },
}
SCSS
$custom: #401d6e;
$custom-light: #795c98;
$custom-dark: #000000;
JSON
{
  "hex": "#401d6e",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 265.926,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.13217,
    "h": 298.6
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#401D6E
secondary
#7AA244
accent
#E1469E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #401D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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