#400B4D#400B4D

#400B4D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.118 H 318.6°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#400B4D
RGBrgb(64, 11, 77)
HSLhsl(288, 75%, 17%)
HSVhsv(288, 86%, 30%)
CMYKcmyk(16.9%, 85.7%, 0%, 69.8%)
CIE-LABlab(14.76, 34.90, -27.80)
CIE-LCHlch(14.76, 44.62, 321.46°)
OKLaboklab(28.08% 0.0887 -0.0782)
OKLCHoklch(28.08% 0.118 318.6)
XYZxyz(3.5734, 1.8653, 7.1916)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B4D #184D0B
analogous
#1F0B4D #400B4D #4D0B39
triadic
#400B4D #4D400B #0B4D40
tetradic
#400B4D #4D1F0B #184D0B #0B394D
square
#400B4D #4D1F0B #184D0B #0B394D
split-complementary
#400B4D #394D0B #0B4D1F
monochromatic
#16041B #16041B #400B4D #6D1383 #991AB8

Accessibility & contrast

On white

15.29
#400B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#400B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B4D
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B4D#FFFFFF#000000##FFFFFF
##400B4D1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#0F274C
Tritanopia (blue-blind)
#401A2C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400b4d;
/* rgb */ color: rgb(64, 11, 77);
/* oklch */ color: oklch(28.1% 0.118 318.6);
Tailwind
colors: {
  custom: {
    50: '#78517f',
    500: '#400b4d',
    950: '#000000',
  },
}
SCSS
$custom: #400b4d;
$custom-light: #78517f;
$custom-dark: #000000;
JSON
{
  "hex": "#400b4d",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 288.182,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28076,
    "c": 0.11827,
    "h": 318.6
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#400B4D
secondary
#3D892B
accent
#F2365B
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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