#400B44#400B44

#400B44 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.4% C 0.110 H 324.9°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#400B44
RGBrgb(64, 11, 68)
HSLhsl(296, 72%, 15%)
HSVhsv(296, 84%, 27%)
CMYKcmyk(5.9%, 83.8%, 0%, 73.3%)
CIE-LABlab(14.10, 33.01, -22.63)
CIE-LCHlch(14.10, 40.02, 325.57°)
OKLaboklab(27.39% 0.0897 -0.063)
OKLCHoklch(27.39% 0.11 324.9)
XYZxyz(3.2773, 1.7469, 5.6323)
Luminance0.0175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B44 #0F440B
analogous
#230B44 #400B44 #440B2B
triadic
#400B44 #44400B #0B4440
tetradic
#400B44 #44230B #0F440B #0B2B44
square
#400B44 #44230B #0F440B #0B2B44
split-complementary
#400B44 #2B440B #0B4423
monochromatic
#19041A #19041A #400B44 #721479 #A31CAD

Accessibility & contrast

On white

15.56
#400B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400B44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B44
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B44#FFFFFF#000000##FFFFFF
##400B441.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002046
Deuteranopia (green-blind)
#172643
Tritanopia (blue-blind)
#421527
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b44;
/* rgb */ color: rgb(64, 11, 68);
/* oklch */ color: oklch(27.4% 0.110 324.9);
Tailwind
colors: {
  custom: {
    50: '#775178',
    500: '#400b44',
    950: '#000000',
  },
}
SCSS
$custom: #400b44;
$custom-light: #775178;
$custom-dark: #000000;
JSON
{
  "hex": "#400b44",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 68
  },
  "hsl": {
    "h": 295.789,
    "s": 72.152,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27392,
    "c": 0.10966,
    "h": 324.9
  },
  "luminance": 0.01747
}

Semantic roles & 50–950 ramp

primary
#400B44
secondary
#30812A
accent
#EF3946
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B44

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

Preview Lab → · Contrast checker → · Palette generator →

#400B44 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva