#400B4B#400B4B

#400B4B is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.9% C 0.116 H 319.9°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#400B4B
RGBrgb(64, 11, 75)
HSLhsl(290, 74%, 17%)
HSVhsv(290, 85%, 29%)
CMYKcmyk(14.7%, 85.3%, 0%, 70.6%)
CIE-LABlab(14.61, 34.47, -26.67)
CIE-LCHlch(14.61, 43.58, 322.27°)
OKLaboklab(27.92% 0.089 -0.0749)
OKLCHoklch(27.92% 0.116 319.9)
XYZxyz(3.5039, 1.8375, 6.8254)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B4B #164B0B
analogous
#200B4B #400B4B #4B0B36
triadic
#400B4B #4B400B #0B4B40
tetradic
#400B4B #4B200B #164B0B #0B364B
square
#400B4B #4B200B #164B0B #0B364B
split-complementary
#400B4B #364B0B #0B4B20
monochromatic
#17041B #17041B #400B4B #6E1380 #9B1BB6

Accessibility & contrast

On white

15.36
#400B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B4B
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B4B#FFFFFF#000000##FFFFFF
##400B4B1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#11274A
Tritanopia (blue-blind)
#40192B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400b4b;
/* rgb */ color: rgb(64, 11, 75);
/* oklch */ color: oklch(27.9% 0.116 319.9);
Tailwind
colors: {
  custom: {
    50: '#78517e',
    500: '#400b4b',
    950: '#000000',
  },
}
SCSS
$custom: #400b4b;
$custom-light: #78517e;
$custom-dark: #000000;
JSON
{
  "hex": "#400b4b",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 289.688,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27919,
    "c": 0.11633,
    "h": 319.9
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#400B4B
secondary
#3B872B
accent
#F13757
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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