#401A72#401A72

#401A72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.141 H 297.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#401A72
RGBrgb(64, 26, 114)
HSLhsl(266, 63%, 27%)
HSVhsv(266, 77%, 45%)
CMYKcmyk(43.9%, 77.2%, 0%, 55.3%)
CIE-LABlab(20.22, 37.52, -43.56)
CIE-LCHlch(20.22, 57.49, 310.74°)
OKLaboklab(32.91% 0.0655 -0.1246)
OKLCHoklch(32.91% 0.141 297.7)
XYZxyz(5.5202, 3.0436, 16.2130)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A72 #4C721A
analogous
#1A2072 #401A72 #6C1A72
triadic
#401A72 #72401A #1A7240
tetradic
#401A72 #721A20 #4C721A #1A726C
square
#401A72 #721A20 #4C721A #1A726C
split-complementary
#401A72 #726C1A #20721A
monochromatic
#0E0619 #240F40 #401A72 #5C25A4 #7935D1

Accessibility & contrast

On white

13.05
#401A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A72
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A72#FFFFFF#000000##FFFFFF
##401A721.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#333144
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401a72;
/* rgb */ color: rgb(64, 26, 114);
/* oklch */ color: oklch(32.9% 0.141 297.7);
Tailwind
colors: {
  custom: {
    50: '#7a5b9b',
    500: '#401a72',
    950: '#000000',
  },
}
SCSS
$custom: #401a72;
$custom-light: #7a5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401a72",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 265.909,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32905,
    "c": 0.14076,
    "h": 297.7
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#401A72
secondary
#7BA741
accent
#E6429F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A72

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

Preview Lab → · Contrast checker → · Palette generator →

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