#400440#400440

#400440 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.5% C 0.115 H 328.2°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#400440
RGBrgb(64, 4, 64)
HSLhsl(300, 88%, 13%)
HSVhsv(300, 94%, 25%)
CMYKcmyk(0%, 93.8%, 0%, 74.9%)
CIE-LABlab(12.90, 34.87, -21.72)
CIE-LCHlch(12.90, 41.08, 328.09°)
OKLaboklab(26.46% 0.0974 -0.0603)
OKLCHoklch(26.46% 0.115 328.2)
XYZxyz(3.0831, 1.5472, 4.9858)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400440 #044004
analogous
#220440 #400440 #400422
triadic
#400440 #404004 #044040
tetradic
#400440 #402204 #044004 #042240
square
#400440 #402204 #044004 #042240
split-complementary
#400440 #224004 #044022
monochromatic
#1D021D #1D021D #400440 #7A087A #B30BB3

Accessibility & contrast

On white

16.04
#400440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400440
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400440#FFFFFF#000000##FFFFFF
##4004401.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#16243F
Tritanopia (blue-blind)
#420F23
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400440;
/* rgb */ color: rgb(64, 4, 64);
/* oklch */ color: oklch(26.5% 0.115 328.2);
Tailwind
colors: {
  custom: {
    50: '#784e75',
    500: '#400440',
    950: '#000000',
  },
}
SCSS
$custom: #400440;
$custom-light: #784e75;
$custom-dark: #000000;
JSON
{
  "hex": "#400440",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26455,
    "c": 0.11456,
    "h": 328.2
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#400440
secondary
#1F811F
accent
#FE2929
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400440

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

Preview Lab → · Contrast checker → · Palette generator →

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