#401C72#401C72

#401C72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.138 H 297.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#401C72
RGBrgb(64, 28, 114)
HSLhsl(265, 61%, 28%)
HSVhsv(265, 75%, 45%)
CMYKcmyk(43.9%, 75.4%, 0%, 55.3%)
CIE-LABlab(20.58, 36.50, -42.97)
CIE-LCHlch(20.58, 56.39, 310.35°)
OKLaboklab(33.16% 0.0635 -0.1229)
OKLCHoklch(33.16% 0.138 297.3)
XYZxyz(5.5661, 3.1353, 16.2282)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C72 #4E721C
analogous
#1C2372 #401C72 #6B1C72
triadic
#401C72 #72401C #1C7240
tetradic
#401C72 #721C23 #4E721C #1C726B
square
#401C72 #721C23 #4E721C #1C726B
split-complementary
#401C72 #726B1C #23721C
monochromatic
#0E0619 #241041 #401C72 #5C28A3 #783ACF

Accessibility & contrast

On white

12.91
#401C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C72
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C72#FFFFFF#000000##FFFFFF
##401C721.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#333245
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401c72;
/* rgb */ color: rgb(64, 28, 114);
/* oklch */ color: oklch(33.2% 0.138 297.3);
Tailwind
colors: {
  custom: {
    50: '#7a5c9b',
    500: '#401c72',
    950: '#000000',
  },
}
SCSS
$custom: #401c72;
$custom-light: #7a5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401c72",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 265.116,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3316,
    "c": 0.13831,
    "h": 297.3
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#401C72
secondary
#7DA643
accent
#E444A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C72

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

Preview Lab → · Contrast checker → · Palette generator →

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