#400D58#400D58

#400D58 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.127 H 311.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#400D58
RGBrgb(64, 13, 88)
HSLhsl(281, 74%, 20%)
HSVhsv(281, 85%, 35%)
CMYKcmyk(27.3%, 85.2%, 0%, 65.5%)
CIE-LABlab(15.91, 36.64, -33.43)
CIE-LCHlch(15.91, 49.60, 317.62°)
OKLaboklab(29.17% 0.0847 -0.0947)
OKLCHoklch(29.17% 0.127 311.8)
XYZxyz(4.0194, 2.0825, 9.4209)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D58 #25580D
analogous
#1B0D58 #400D58 #580D4B
triadic
#400D58 #58400D #0D5840
tetradic
#400D58 #581B0D #25580D #0D4B58
square
#400D58 #581B0D #25580D #0D4B58
split-complementary
#400D58 #4B580D #0D581B
monochromatic
#13041B #190523 #400D58 #67158D #8E1DC3

Accessibility & contrast

On white

14.83
#400D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#400D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D58
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D58#FFFFFF#000000##FFFFFF
##400D581.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#3D2033
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400d58;
/* rgb */ color: rgb(64, 13, 88);
/* oklch */ color: oklch(29.2% 0.127 311.8);
Tailwind
colors: {
  custom: {
    50: '#785388',
    500: '#400d58',
    950: '#000000',
  },
}
SCSS
$custom: #400d58;
$custom-light: #785388;
$custom-dark: #000000;
JSON
{
  "hex": "#400d58",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 280.8,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29168,
    "c": 0.12704,
    "h": 311.8
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#400D58
secondary
#4E932E
accent
#F13772
background
#F7F4F8
surface
#EEE8F0
border
#C9C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400D58

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

Preview Lab → · Contrast checker → · Palette generator →

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