#401A74#401A74

#401A74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.143 H 297.0°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#401A74
RGBrgb(64, 26, 116)
HSLhsl(265, 63%, 28%)
HSVhsv(265, 78%, 45%)
CMYKcmyk(44.8%, 77.6%, 0%, 54.5%)
CIE-LABlab(20.40, 38.07, -44.55)
CIE-LCHlch(20.40, 58.61, 310.52°)
OKLaboklab(33.09% 0.065 -0.1275)
OKLCHoklch(33.09% 0.143 297)
XYZxyz(5.6353, 3.0896, 16.8191)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A74 #4E741A
analogous
#1A2174 #401A74 #6D1A74
triadic
#401A74 #74401A #1A7440
tetradic
#401A74 #741A21 #4E741A #1A746D
square
#401A74 #741A21 #4E741A #1A746D
split-complementary
#401A74 #746D1A #21741A
monochromatic
#0E0619 #240F42 #401A74 #5C25A6 #7836D2

Accessibility & contrast

On white

12.98
#401A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A74
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A74#FFFFFF#000000##FFFFFF
##401A741.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#323246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401a74;
/* rgb */ color: rgb(64, 26, 116);
/* oklch */ color: oklch(33.1% 0.143 297.0);
Tailwind
colors: {
  custom: {
    50: '#7a5b9d',
    500: '#401a74',
    950: '#000000',
  },
}
SCSS
$custom: #401a74;
$custom-light: #7a5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401a74",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 265.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3309,
    "c": 0.14312,
    "h": 297
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#401A74
secondary
#7DA941
accent
#E641A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A74

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

Preview Lab → · Contrast checker → · Palette generator →

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