#401A75#401A75

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

Color values

HEX#401A75
RGBrgb(64, 26, 117)
HSLhsl(265, 64%, 28%)
HSVhsv(265, 78%, 46%)
CMYKcmyk(45.3%, 77.8%, 0%, 54.1%)
CIE-LABlab(20.49, 38.35, -45.05)
CIE-LCHlch(20.49, 59.16, 310.41°)
OKLaboklab(33.18% 0.0648 -0.1289)
OKLCHoklch(33.18% 0.144 296.7)
XYZxyz(5.6938, 3.1130, 17.1271)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A75 #4F751A
analogous
#1A2175 #401A75 #6D1A75
triadic
#401A75 #75401A #1A7540
tetradic
#401A75 #751A21 #4F751A #1A756D
square
#401A75 #751A21 #4F751A #1A756D
split-complementary
#401A75 #756D1A #21751A
monochromatic
#0E0619 #250F43 #401A75 #5B25A7 #7837D3

Accessibility & contrast

On white

12.94
#401A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A75
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A75#FFFFFF#000000##FFFFFF
##401A751.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401a75;
/* rgb */ color: rgb(64, 26, 117);
/* oklch */ color: oklch(33.2% 0.144 296.7);
Tailwind
colors: {
  custom: {
    50: '#7b5b9e',
    500: '#401a75',
    950: '#000000',
  },
}
SCSS
$custom: #401a75;
$custom-light: #7b5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401a75",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 265.055,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33182,
    "c": 0.14428,
    "h": 296.7
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#401A75
secondary
#7EAA41
accent
#E741A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A75

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

Preview Lab → · Contrast checker → · Palette generator →

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