#401745#401745

#401745 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.093 H 323.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#401745
RGBrgb(64, 23, 69)
HSLhsl(293, 50%, 18%)
HSVhsv(293, 67%, 27%)
CMYKcmyk(7.2%, 66.7%, 0%, 72.9%)
CIE-LABlab(16.17, 27.61, -20.03)
CIE-LCHlch(16.17, 34.11, 324.03°)
OKLaboklab(28.9% 0.0743 -0.0556)
OKLCHoklch(28.9% 0.093 323.2)
XYZxyz(3.4948, 2.1326, 5.8566)
Luminance0.0213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401745 #1C4517
analogous
#291745 #401745 #451733
triadic
#401745 #454017 #174540
tetradic
#401745 #452917 #1C4517 #173345
square
#401745 #452917 #1C4517 #173345
split-complementary
#401745 #334517 #174529
monochromatic
#150817 #150817 #401745 #6B2673 #9536A1

Accessibility & contrast

On white

14.72
#401745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401745 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401745
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401745#FFFFFF#000000##FFFFFF
##4017451.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2546
Deuteranopia (green-blind)
#1E2A44
Tritanopia (blue-blind)
#411E2B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401745;
/* rgb */ color: rgb(64, 23, 69);
/* oklch */ color: oklch(28.9% 0.093 323.2);
Tailwind
colors: {
  custom: {
    50: '#765779',
    500: '#401745',
    950: '#000000',
  },
}
SCSS
$custom: #401745;
$custom-light: #765779;
$custom-dark: #000000;
JSON
{
  "hex": "#401745",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 293.478,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28904,
    "c": 0.09279,
    "h": 323.2
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#401745
secondary
#437C3C
accent
#DA4E5D
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401745

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

Preview Lab → · Contrast checker → · Palette generator →

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