#401A7D#401A7D

#401A7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.154 H 294.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#401A7D
RGBrgb(64, 26, 125)
HSLhsl(263, 66%, 30%)
HSVhsv(263, 79%, 49%)
CMYKcmyk(48.8%, 79.2%, 0%, 51%)
CIE-LABlab(21.24, 40.58, -48.93)
CIE-LCHlch(21.24, 63.57, 309.67°)
OKLaboklab(33.94% 0.0625 -0.1403)
OKLCHoklch(33.94% 0.154 294)
XYZxyz(6.1844, 3.3093, 19.7110)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A7D #577D1A
analogous
#1A267D #401A7D #721A7D
triadic
#401A7D #7D401A #1A7D40
tetradic
#401A7D #7D1A26 #577D1A #1A7D72
square
#401A7D #7D1A26 #577D1A #1A7D72
split-complementary
#401A7D #7D721A #267D1A
monochromatic
#0D0519 #260F4A #401A7D #5A25B0 #773BD6

Accessibility & contrast

On white

12.64
#401A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A7D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A7D#FFFFFF#000000##FFFFFF
##401A7D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2E354B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401a7d;
/* rgb */ color: rgb(64, 26, 125);
/* oklch */ color: oklch(33.9% 0.154 294.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ba4',
    500: '#401a7d',
    950: '#000000',
  },
}
SCSS
$custom: #401a7d;
$custom-light: #7c5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#401a7d",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 263.03,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33941,
    "c": 0.15362,
    "h": 294
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#401A7D
secondary
#86B142
accent
#E93FA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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