#401B75#401B75

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

Color values

HEX#401B75
RGBrgb(64, 27, 117)
HSLhsl(265, 63%, 28%)
HSVhsv(265, 77%, 46%)
CMYKcmyk(45.3%, 76.9%, 0%, 54.1%)
CIE-LABlab(20.67, 37.85, -44.76)
CIE-LCHlch(20.67, 58.62, 310.22°)
OKLaboklab(33.31% 0.0638 -0.1281)
OKLCHoklch(33.31% 0.143 296.5)
XYZxyz(5.7163, 3.1581, 17.1346)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B75 #50751B
analogous
#1B2375 #401B75 #6D1B75
triadic
#401B75 #75401B #1B7540
tetradic
#401B75 #751B23 #50751B #1B756D
square
#401B75 #751B23 #50751B #1B756D
split-complementary
#401B75 #756D1B #23751B
monochromatic
#0E0619 #251043 #401B75 #5B26A7 #7839D1

Accessibility & contrast

On white

12.87
#401B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B75
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B75#FFFFFF#000000##FFFFFF
##401B751.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b75;
/* rgb */ color: rgb(64, 27, 117);
/* oklch */ color: oklch(33.3% 0.143 296.5);
Tailwind
colors: {
  custom: {
    50: '#7b5b9e',
    500: '#401b75',
    950: '#000000',
  },
}
SCSS
$custom: #401b75;
$custom-light: #7b5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401b75",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 264.667,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33306,
    "c": 0.14311,
    "h": 296.5
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#401B75
secondary
#7FA942
accent
#E642A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B75

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

Preview Lab → · Contrast checker → · Palette generator →

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