#401C6E#401C6E

#401C6E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.133 H 298.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#401C6E
RGBrgb(64, 28, 110)
HSLhsl(266, 59%, 27%)
HSVhsv(266, 75%, 43%)
CMYKcmyk(41.8%, 74.5%, 0%, 56.9%)
CIE-LABlab(20.23, 35.39, -40.96)
CIE-LCHlch(20.23, 54.13, 310.83°)
OKLaboklab(32.8% 0.0644 -0.1169)
OKLCHoklch(32.8% 0.133 298.8)
XYZxyz(5.3434, 3.0462, 15.0553)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C6E #4A6E1C
analogous
#1C216E #401C6E #691C6E
triadic
#401C6E #6E401C #1C6E40
tetradic
#401C6E #6E1C21 #4A6E1C #1C6E69
square
#401C6E #6E1C21 #4A6E1C #1C6E69
split-complementary
#401C6E #6E691C #216E1C
monochromatic
#0E0618 #24103D #401C6E #5C289F #7938CC

Accessibility & contrast

On white

13.05
#401C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C6E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C6E#FFFFFF#000000##FFFFFF
##401C6E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c6e;
/* rgb */ color: rgb(64, 28, 110);
/* oklch */ color: oklch(32.8% 0.133 298.8);
Tailwind
colors: {
  custom: {
    50: '#7a5c98',
    500: '#401c6e',
    950: '#000000',
  },
}
SCSS
$custom: #401c6e;
$custom-light: #7a5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#401c6e",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 266.341,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32803,
    "c": 0.13349,
    "h": 298.8
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#401C6E
secondary
#79A343
accent
#E3459D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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