#401945#401945

#401945 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.089 H 323.0°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#401945
RGBrgb(64, 25, 69)
HSLhsl(293, 47%, 18%)
HSVhsv(293, 64%, 27%)
CMYKcmyk(7.2%, 63.8%, 0%, 72.9%)
CIE-LABlab(16.58, 26.49, -19.39)
CIE-LCHlch(16.58, 32.83, 323.81°)
OKLaboklab(29.2% 0.0712 -0.0537)
OKLCHoklch(29.2% 0.089 323)
XYZxyz(3.5361, 2.2151, 5.8704)
Luminance0.0221 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401945 #1E4519
analogous
#2A1945 #401945 #451934
triadic
#401945 #454019 #194540
tetradic
#401945 #452A19 #1E4519 #193445
square
#401945 #452A19 #1E4519 #193445
split-complementary
#401945 #344519 #19452A
monochromatic
#150816 #160918 #401945 #6A2972 #933A9F

Accessibility & contrast

On white

14.55
#401945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401945
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401945#FFFFFF#000000##FFFFFF
##4019451.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122646
Deuteranopia (green-blind)
#1F2B44
Tritanopia (blue-blind)
#411F2C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401945;
/* rgb */ color: rgb(64, 25, 69);
/* oklch */ color: oklch(29.2% 0.089 323.0);
Tailwind
colors: {
  custom: {
    50: '#765879',
    500: '#401945',
    950: '#000000',
  },
}
SCSS
$custom: #401945;
$custom-light: #765879;
$custom-dark: #000000;
JSON
{
  "hex": "#401945",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 69
  },
  "hsl": {
    "h": 293.182,
    "s": 46.809,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.08924,
    "h": 323
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#401945
secondary
#457B3E
accent
#D65160
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401945

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

Preview Lab → · Contrast checker → · Palette generator →

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