#401C7E#401C7E

#401C7E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.153 H 293.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#401C7E
RGBrgb(64, 28, 126)
HSLhsl(262, 64%, 30%)
HSVhsv(262, 78%, 49%)
CMYKcmyk(49.2%, 77.8%, 0%, 50.6%)
CIE-LABlab(21.68, 39.89, -48.85)
CIE-LCHlch(21.68, 63.07, 309.23°)
OKLaboklab(34.28% 0.0605 -0.1401)
OKLCHoklch(34.28% 0.153 293.3)
XYZxyz(6.2945, 3.4267, 20.0644)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C7E #5A7E1C
analogous
#1C297E #401C7E #711C7E
triadic
#401C7E #7E401C #1C7E40
tetradic
#401C7E #7E1C29 #5A7E1C #1C7E71
square
#401C7E #7E1C29 #5A7E1C #1C7E71
split-complementary
#401C7E #7E711C #297E1C
monochromatic
#0D061A #27114C #401C7E #5927B0 #7640D5

Accessibility & contrast

On white

12.46
#401C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C7E
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C7E#FFFFFF#000000##FFFFFF
##401C7E1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#2D374C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401c7e;
/* rgb */ color: rgb(64, 28, 126);
/* oklch */ color: oklch(34.3% 0.153 293.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ca4',
    500: '#401c7e',
    950: '#000000',
  },
}
SCSS
$custom: #401c7e;
$custom-light: #7c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#401c7e",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 262.041,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.15262,
    "h": 293.3
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#401C7E
secondary
#89B244
accent
#E741AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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