#401D7C#401D7C

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

Color values

HEX#401D7C
RGBrgb(64, 29, 124)
HSLhsl(262, 62%, 30%)
HSVhsv(262, 77%, 49%)
CMYKcmyk(48.4%, 76.6%, 0%, 51.4%)
CIE-LABlab(21.67, 38.82, -47.60)
CIE-LCHlch(21.67, 61.42, 309.20°)
OKLaboklab(34.21% 0.0601 -0.1364)
OKLCHoklch(34.21% 0.149 293.8)
XYZxyz(6.1908, 3.4238, 19.3995)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D7C #597C1D
analogous
#1D2A7C #401D7C #6F1D7C
triadic
#401D7C #7C401D #1D7C40
tetradic
#401D7C #7C1D2A #597C1D #1D7C6F
square
#401D7C #7C1D2A #597C1D #1D7C6F
split-complementary
#401D7C #7C6F1D #2A7C1D
monochromatic
#0D0619 #26114A #401D7C #5A29AE #7741D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401D7C#FFFFFF#000000##FFFFFF
##401D7C1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.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: #401d7c;
/* rgb */ color: rgb(64, 29, 124);
/* oklch */ color: oklch(34.2% 0.149 293.8);
Tailwind
colors: {
  custom: {
    50: '#7b5da3',
    500: '#401d7c',
    950: '#000000',
  },
}
SCSS
$custom: #401d7c;
$custom-light: #7b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#401d7c",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 262.105,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.3421,
    "c": 0.1491,
    "h": 293.8
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#401D7C
secondary
#88B045
accent
#E543A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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