#401D74#401D74

#401D74 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.139 H 296.4°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#401D74
RGBrgb(64, 29, 116)
HSLhsl(264, 60%, 28%)
HSVhsv(264, 75%, 45%)
CMYKcmyk(44.8%, 75%, 0%, 54.5%)
CIE-LABlab(20.94, 36.54, -43.67)
CIE-LCHlch(20.94, 56.94, 309.92°)
OKLaboklab(33.47% 0.062 -0.1249)
OKLCHoklch(33.47% 0.139 296.4)
XYZxyz(5.7053, 3.2296, 16.8424)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D74 #51741D
analogous
#1D2574 #401D74 #6B1D74
triadic
#401D74 #74401D #1D7440
tetradic
#401D74 #741D25 #51741D #1D746B
square
#401D74 #741D25 #51741D #1D746B
split-complementary
#401D74 #746B1D #25741D
monochromatic
#0E0618 #251143 #401D74 #5B29A5 #773DCE

Accessibility & contrast

On white

12.76
#401D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#401D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D74
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D74#FFFFFF#000000##FFFFFF
##401D741.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#323346
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401d74;
/* rgb */ color: rgb(64, 29, 116);
/* oklch */ color: oklch(33.5% 0.139 296.4);
Tailwind
colors: {
  custom: {
    50: '#7a5c9d',
    500: '#401d74',
    950: '#000000',
  },
}
SCSS
$custom: #401d74;
$custom-light: #7a5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401d74",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 264.138,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33472,
    "c": 0.13947,
    "h": 296.4
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#401D74
secondary
#80A845
accent
#E345A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D74

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

Preview Lab → · Contrast checker → · Palette generator →

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