#401D7D#401D7D

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

Color values

HEX#401D7D
RGBrgb(64, 29, 125)
HSLhsl(262, 62%, 30%)
HSVhsv(262, 77%, 49%)
CMYKcmyk(48.8%, 76.8%, 0%, 51%)
CIE-LABlab(21.76, 39.10, -48.08)
CIE-LCHlch(21.76, 61.97, 309.12°)
OKLaboklab(34.3% 0.0598 -0.1379)
OKLCHoklch(34.3% 0.15 293.5)
XYZxyz(6.2544, 3.4492, 19.7343)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D7D #5A7D1D
analogous
#1D2A7D #401D7D #701D7D
triadic
#401D7D #7D401D #1D7D40
tetradic
#401D7D #7D1D2A #5A7D1D #1D7D70
square
#401D7D #7D1D2A #5A7D1D #1D7D70
split-complementary
#401D7D #7D701D #2A7D1D
monochromatic
#0D061A #27114B #401D7D #5929AF #7641D3

Accessibility & contrast

On white

12.43
#401D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D7D
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D7D#FFFFFF#000000##FFFFFF
##401D7D1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2D374B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401d7d;
/* rgb */ color: rgb(64, 29, 125);
/* oklch */ color: oklch(34.3% 0.150 293.5);
Tailwind
colors: {
  custom: {
    50: '#7c5da4',
    500: '#401d7d',
    950: '#000000',
  },
}
SCSS
$custom: #401d7d;
$custom-light: #7c5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#401d7d",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 261.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34304,
    "c": 0.1503,
    "h": 293.5
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#401D7D
secondary
#89B145
accent
#E542AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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