#400D55#400D55

#400D55 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.9% C 0.124 H 313.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#400D55
RGBrgb(64, 13, 85)
HSLhsl(283, 73%, 19%)
HSVhsv(283, 85%, 33%)
CMYKcmyk(24.7%, 84.7%, 0%, 66.7%)
CIE-LABlab(15.66, 35.94, -31.81)
CIE-LCHlch(15.66, 48.00, 318.49°)
OKLaboklab(28.91% 0.0853 -0.09)
OKLCHoklch(28.91% 0.124 313.5)
XYZxyz(3.8977, 2.0338, 8.7798)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D55 #22550D
analogous
#1C0D55 #400D55 #550D46
triadic
#400D55 #55400D #0D5540
tetradic
#400D55 #551C0D #22550D #0D4655
square
#400D55 #551C0D #22550D #0D4655
split-complementary
#400D55 #46550D #0D551C
monochromatic
#14041B #180520 #400D55 #68158A #901DBF

Accessibility & contrast

On white

14.93
#400D55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D55
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D55#FFFFFF#000000##FFFFFF
##400D551.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#052854
Tritanopia (blue-blind)
#3E1E31
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400d55;
/* rgb */ color: rgb(64, 13, 85);
/* oklch */ color: oklch(28.9% 0.124 313.5);
Tailwind
colors: {
  custom: {
    50: '#785385',
    500: '#400d55',
    950: '#000000',
  },
}
SCSS
$custom: #400d55;
$custom-light: #785385;
$custom-dark: #000000;
JSON
{
  "hex": "#400d55",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 85
  },
  "hsl": {
    "h": 282.5,
    "s": 73.469,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28913,
    "c": 0.124,
    "h": 313.5
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#400D55
secondary
#4B902E
accent
#F0386D
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400D55

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

Preview Lab → · Contrast checker → · Palette generator →

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