#400D59#400D59

#400D59 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.3% C 0.128 H 311.2°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#400D59
RGBrgb(64, 13, 89)
HSLhsl(280, 75%, 20%)
HSVhsv(280, 85%, 35%)
CMYKcmyk(28.1%, 85.4%, 0%, 65.1%)
CIE-LABlab(16.00, 36.87, -33.97)
CIE-LCHlch(16.00, 50.13, 317.34°)
OKLaboklab(29.25% 0.0844 -0.0963)
OKLCHoklch(29.25% 0.128 311.2)
XYZxyz(4.0611, 2.0992, 9.6405)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D59 #26590D
analogous
#1A0D59 #400D59 #590D4C
triadic
#400D59 #59400D #0D5940
tetradic
#400D59 #591A0D #26590D #0D4C59
square
#400D59 #591A0D #26590D #0D4C59
split-complementary
#400D59 #4C590D #0D591A
monochromatic
#13041B #1A0524 #400D59 #66158E #8D1DC4

Accessibility & contrast

On white

14.79
#400D59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D59
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D59#FFFFFF#000000##FFFFFF
##400D591.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002957
Tritanopia (blue-blind)
#3D2033
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400d59;
/* rgb */ color: rgb(64, 13, 89);
/* oklch */ color: oklch(29.3% 0.128 311.2);
Tailwind
colors: {
  custom: {
    50: '#785388',
    500: '#400d59',
    950: '#000000',
  },
}
SCSS
$custom: #400d59;
$custom-light: #785388;
$custom-dark: #000000;
JSON
{
  "hex": "#400d59",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 89
  },
  "hsl": {
    "h": 280.263,
    "s": 74.51,
    "l": 20
  },
  "oklch": {
    "l": 0.29254,
    "c": 0.12806,
    "h": 311.2
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#400D59
secondary
#50932E
accent
#F13774
background
#F7F4F8
surface
#EEE8F0
border
#C9C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400D59

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

Preview Lab → · Contrast checker → · Palette generator →

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