#400D56#400D56

#400D56 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.0% C 0.125 H 312.9°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#400D56
RGBrgb(64, 13, 86)
HSLhsl(282, 74%, 19%)
HSVhsv(282, 85%, 34%)
CMYKcmyk(25.6%, 84.9%, 0%, 66.3%)
CIE-LABlab(15.75, 36.17, -32.36)
CIE-LCHlch(15.75, 48.53, 318.19°)
OKLaboklab(29% 0.0851 -0.0916)
OKLCHoklch(29% 0.125 312.9)
XYZxyz(3.9377, 2.0498, 8.9905)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D56 #23560D
analogous
#1C0D56 #400D56 #560D48
triadic
#400D56 #56400D #0D5640
tetradic
#400D56 #561C0D #23560D #0D4856
square
#400D56 #561C0D #23560D #0D4856
split-complementary
#400D56 #48560D #0D561C
monochromatic
#14041B #180521 #400D56 #68158B #8F1DC0

Accessibility & contrast

On white

14.89
#400D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#400D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D56
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D56#FFFFFF#000000##FFFFFF
##400D561.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#042854
Tritanopia (blue-blind)
#3E1F32
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400d56;
/* rgb */ color: rgb(64, 13, 86);
/* oklch */ color: oklch(29.0% 0.125 312.9);
Tailwind
colors: {
  custom: {
    50: '#785386',
    500: '#400d56',
    950: '#000000',
  },
}
SCSS
$custom: #400d56;
$custom-light: #785386;
$custom-dark: #000000;
JSON
{
  "hex": "#400d56",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 281.918,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28997,
    "c": 0.12501,
    "h": 312.9
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#400D56
secondary
#4C912E
accent
#F0376F
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400D56

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

Preview Lab → · Contrast checker → · Palette generator →

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