#401C74#401C74

#401C74 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.141 H 296.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#401C74
RGBrgb(64, 28, 116)
HSLhsl(265, 61%, 28%)
HSVhsv(265, 76%, 45%)
CMYKcmyk(44.8%, 75.9%, 0%, 54.5%)
CIE-LABlab(20.76, 37.07, -43.97)
CIE-LCHlch(20.76, 57.51, 310.13°)
OKLaboklab(33.34% 0.063 -0.1258)
OKLCHoklch(33.34% 0.141 296.6)
XYZxyz(5.6812, 3.1813, 16.8343)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C74 #50741C
analogous
#1C2474 #401C74 #6C1C74
triadic
#401C74 #74401C #1C7440
tetradic
#401C74 #741C24 #50741C #1C746C
square
#401C74 #741C24 #50741C #1C746C
split-complementary
#401C74 #746C1C #24741C
monochromatic
#0E0619 #251043 #401C74 #5B28A5 #783BD0

Accessibility & contrast

On white

12.83
#401C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C74
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C74#FFFFFF#000000##FFFFFF
##401C741.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c74;
/* rgb */ color: rgb(64, 28, 116);
/* oklch */ color: oklch(33.3% 0.141 296.6);
Tailwind
colors: {
  custom: {
    50: '#7a5c9d',
    500: '#401c74',
    950: '#000000',
  },
}
SCSS
$custom: #401c74;
$custom-light: #7a5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401c74",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 264.545,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33341,
    "c": 0.14071,
    "h": 296.6
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#401C74
secondary
#7FA843
accent
#E444A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C74

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

Preview Lab → · Contrast checker → · Palette generator →

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