#401C7C#401C7C

#401C7C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.150 H 294.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#401C7C
RGBrgb(64, 28, 124)
HSLhsl(263, 63%, 30%)
HSVhsv(263, 77%, 49%)
CMYKcmyk(48.4%, 77.4%, 0%, 51.4%)
CIE-LABlab(21.49, 39.32, -47.89)
CIE-LCHlch(21.49, 61.96, 309.39°)
OKLaboklab(34.09% 0.061 -0.1373)
OKLCHoklch(34.09% 0.15 294)
XYZxyz(6.1667, 3.3755, 19.3915)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C7C #587C1C
analogous
#1C287C #401C7C #701C7C
triadic
#401C7C #7C401C #1C7C40
tetradic
#401C7C #7C1C28 #587C1C #1C7C70
square
#401C7C #7C1C28 #587C1C #1C7C70
split-complementary
#401C7C #7C701C #287C1C
monochromatic
#0D0619 #26114A #401C7C #5A27AE #773FD4

Accessibility & contrast

On white

12.54
#401C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C7C
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C7C#FFFFFF#000000##FFFFFF
##401C7C1.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#2E364B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401c7c;
/* rgb */ color: rgb(64, 28, 124);
/* oklch */ color: oklch(34.1% 0.150 294.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ca3',
    500: '#401c7c',
    950: '#000000',
  },
}
SCSS
$custom: #401c7c;
$custom-light: #7b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#401c7c",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 262.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34085,
    "c": 0.15025,
    "h": 294
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#401C7C
secondary
#87B044
accent
#E642A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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