#400944#400944

#400944 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.112 H 325.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#400944
RGBrgb(64, 9, 68)
HSLhsl(296, 77%, 15%)
HSVhsv(296, 87%, 27%)
CMYKcmyk(5.9%, 86.8%, 0%, 73.3%)
CIE-LABlab(13.84, 33.74, -23.03)
CIE-LCHlch(13.84, 40.85, 325.68°)
OKLaboklab(27.21% 0.0918 -0.0642)
OKLCHoklch(27.21% 0.112 325)
XYZxyz(3.2553, 1.7029, 5.6250)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400944 #0D4409
analogous
#220944 #400944 #44092B
triadic
#400944 #444009 #094440
tetradic
#400944 #442209 #0D4409 #092B44
square
#400944 #442209 #0D4409 #092B44
split-complementary
#400944 #2B4409 #094422
monochromatic
#19041B #19041B #400944 #73107A #A617B0

Accessibility & contrast

On white

15.66
#400944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400944 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400944
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400944#FFFFFF#000000##FFFFFF
##4009441.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#162543
Tritanopia (blue-blind)
#421426
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400944;
/* rgb */ color: rgb(64, 9, 68);
/* oklch */ color: oklch(27.2% 0.112 325.0);
Tailwind
colors: {
  custom: {
    50: '#775078',
    500: '#400944',
    950: '#000000',
  },
}
SCSS
$custom: #400944;
$custom-light: #775078;
$custom-dark: #000000;
JSON
{
  "hex": "#400944",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 68
  },
  "hsl": {
    "h": 295.932,
    "s": 76.623,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27211,
    "c": 0.11199,
    "h": 325
  },
  "luminance": 0.01703
}

Semantic roles & 50–950 ramp

primary
#400944
secondary
#2D8227
accent
#F33542
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400944

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

Preview Lab → · Contrast checker → · Palette generator →

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