#400B49#400B49

#400B49 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.8% C 0.114 H 321.3°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#400B49
RGBrgb(64, 11, 73)
HSLhsl(291, 74%, 16%)
HSVhsv(291, 85%, 29%)
CMYKcmyk(12.3%, 84.9%, 0%, 71.4%)
CIE-LABlab(14.46, 34.04, -25.53)
CIE-LCHlch(14.46, 42.55, 323.13°)
OKLaboklab(27.76% 0.0893 -0.0715)
OKLCHoklch(27.76% 0.114 321.3)
XYZxyz(3.4365, 1.8106, 6.4705)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B49 #14490B
analogous
#210B49 #400B49 #490B33
triadic
#400B49 #49400B #0B4940
tetradic
#400B49 #49210B #14490B #0B3349
square
#400B49 #49210B #14490B #0B3349
split-complementary
#400B49 #33490B #0B4921
monochromatic
#17041B #17041B #400B49 #6F137E #9D1BB3

Accessibility & contrast

On white

15.42
#400B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B49
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B49#FFFFFF#000000##FFFFFF
##400B491.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#132648
Tritanopia (blue-blind)
#41182A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400b49;
/* rgb */ color: rgb(64, 11, 73);
/* oklch */ color: oklch(27.8% 0.114 321.3);
Tailwind
colors: {
  custom: {
    50: '#77517c',
    500: '#400b49',
    950: '#000000',
  },
}
SCSS
$custom: #400b49;
$custom-light: #77517c;
$custom-dark: #000000;
JSON
{
  "hex": "#400b49",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 73
  },
  "hsl": {
    "h": 291.29,
    "s": 73.81,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27764,
    "c": 0.11441,
    "h": 321.3
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#400B49
secondary
#38852A
accent
#F03752
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B49

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

Preview Lab → · Contrast checker → · Palette generator →

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