#401759#401759

#401759 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.4% C 0.115 H 309.7°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#401759
RGBrgb(64, 23, 89)
HSLhsl(277, 59%, 22%)
HSVhsv(277, 74%, 35%)
CMYKcmyk(28.1%, 74.2%, 0%, 65.1%)
CIE-LABlab(17.57, 32.39, -31.43)
CIE-LCHlch(17.57, 45.13, 315.87°)
OKLaboklab(30.37% 0.0737 -0.0889)
OKLCHoklch(30.37% 0.115 309.7)
XYZxyz(4.2236, 2.4241, 9.6947)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401759 #305917
analogous
#1F1759 #401759 #591751
triadic
#401759 #594017 #175940
tetradic
#401759 #591F17 #305917 #175159
square
#401759 #591F17 #305917 #175159
split-complementary
#401759 #515917 #17591F
monochromatic
#110618 #1D0A28 #401759 #63248A #8630BA

Accessibility & contrast

On white

14.14
#401759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401759
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401759#FFFFFF#000000##FFFFFF
##4017591.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#0B2C58
Tritanopia (blue-blind)
#3C2536
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401759;
/* rgb */ color: rgb(64, 23, 89);
/* oklch */ color: oklch(30.4% 0.115 309.7);
Tailwind
colors: {
  custom: {
    50: '#785888',
    500: '#401759',
    950: '#000000',
  },
}
SCSS
$custom: #401759;
$custom-light: #785888;
$custom-dark: #000000;
JSON
{
  "hex": "#401759",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 277.273,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30367,
    "c": 0.11548,
    "h": 309.7
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#401759
secondary
#5C903C
accent
#E24681
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401759

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

Preview Lab → · Contrast checker → · Palette generator →

#401759 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva