#401D60#401D60

#401D60 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.8% C 0.115 H 304.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#401D60
RGBrgb(64, 29, 96)
HSLhsl(271, 54%, 25%)
HSVhsv(271, 70%, 38%)
CMYKcmyk(33.3%, 69.8%, 0%, 62.4%)
CIE-LABlab(19.28, 30.99, -33.33)
CIE-LCHlch(19.28, 45.51, 312.92°)
OKLaboklab(31.76% 0.0653 -0.0945)
OKLCHoklch(31.76% 0.115 304.6)
XYZxyz(4.6646, 2.8133, 11.3613)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D60 #3D601D
analogous
#1E1D60 #401D60 #601D5F
triadic
#401D60 #60401D #1D6040
tetradic
#401D60 #601E1D #3D601D #1D5F60
square
#401D60 #601E1D #3D601D #1D5F60
split-complementary
#401D60 #5F601D #1D601E
monochromatic
#100718 #210F31 #401D60 #5F2B8F #7F39BE

Accessibility & contrast

On white

13.44
#401D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401D60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D60
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D60#FFFFFF#000000##FFFFFF
##401D601.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#092F5F
Tritanopia (blue-blind)
#3A2C3B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401d60;
/* rgb */ color: rgb(64, 29, 96);
/* oklch */ color: oklch(31.8% 0.115 304.6);
Tailwind
colors: {
  custom: {
    50: '#785c8e',
    500: '#401d60',
    950: '#000000',
  },
}
SCSS
$custom: #401d60;
$custom-light: #785c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#401d60",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 271.343,
    "s": 53.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.11491,
    "h": 304.6
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#401D60
secondary
#6B9544
accent
#DD4B91
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401D60

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

Preview Lab → · Contrast checker → · Palette generator →

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