#400B4A#400B4A

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

Color values

HEX#400B4A
RGBrgb(64, 11, 74)
HSLhsl(290, 74%, 17%)
HSVhsv(290, 85%, 29%)
CMYKcmyk(13.5%, 85.1%, 0%, 71%)
CIE-LABlab(14.53, 34.25, -26.10)
CIE-LCHlch(14.53, 43.07, 322.69°)
OKLaboklab(27.84% 0.0892 -0.0732)
OKLCHoklch(27.84% 0.115 320.6)
XYZxyz(3.4699, 1.8239, 6.6465)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B4A #154A0B
analogous
#210B4A #400B4A #4A0B35
triadic
#400B4A #4A400B #0B4A40
tetradic
#400B4A #4A210B #154A0B #0B354A
square
#400B4A #4A210B #154A0B #0B354A
split-complementary
#400B4A #354A0B #0B4A21
monochromatic
#17041B #17041B #400B4A #6E137F #9C1BB5

Accessibility & contrast

On white

15.39
#400B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B4A
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B4A#FFFFFF#000000##FFFFFF
##400B4A1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#122749
Tritanopia (blue-blind)
#40182A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400b4a;
/* rgb */ color: rgb(64, 11, 74);
/* oklch */ color: oklch(27.8% 0.115 320.6);
Tailwind
colors: {
  custom: {
    50: '#78517d',
    500: '#400b4a',
    950: '#000000',
  },
}
SCSS
$custom: #400b4a;
$custom-light: #78517d;
$custom-dark: #000000;
JSON
{
  "hex": "#400b4a",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 290.476,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27841,
    "c": 0.11536,
    "h": 320.6
  },
  "luminance": 0.01824
}

Semantic roles & 50–950 ramp

primary
#400B4A
secondary
#39862B
accent
#F13755
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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