#400B48#400B48

#400B48 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.113 H 322.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#400B48
RGBrgb(64, 11, 72)
HSLhsl(292, 73%, 16%)
HSVhsv(292, 85%, 28%)
CMYKcmyk(11.1%, 84.7%, 0%, 71.8%)
CIE-LABlab(14.39, 33.83, -24.95)
CIE-LCHlch(14.39, 42.04, 323.59°)
OKLaboklab(27.69% 0.0894 -0.0698)
OKLCHoklch(27.69% 0.113 322)
XYZxyz(3.4036, 1.7974, 6.2973)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B48 #13480B
analogous
#220B48 #400B48 #480B32
triadic
#400B48 #48400B #0B4840
tetradic
#400B48 #48220B #13480B #0B3248
square
#400B48 #48220B #13480B #0B3248
split-complementary
#400B48 #32480B #0B4822
monochromatic
#18041B #18041B #400B48 #6F137D #9E1BB2

Accessibility & contrast

On white

15.45
#400B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B48
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B48#FFFFFF#000000##FFFFFF
##400B481.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#142647
Tritanopia (blue-blind)
#411729
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b48;
/* rgb */ color: rgb(64, 11, 72);
/* oklch */ color: oklch(27.7% 0.113 322.0);
Tailwind
colors: {
  custom: {
    50: '#77517b',
    500: '#400b48',
    950: '#000000',
  },
}
SCSS
$custom: #400b48;
$custom-light: #77517b;
$custom-dark: #000000;
JSON
{
  "hex": "#400b48",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 292.131,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27688,
    "c": 0.11345,
    "h": 322
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#400B48
secondary
#36842A
accent
#F03850
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B48

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

Preview Lab → · Contrast checker → · Palette generator →

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