#400E59#400E59

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

Color values

HEX#400E59
RGBrgb(64, 14, 89)
HSLhsl(280, 73%, 20%)
HSVhsv(280, 84%, 35%)
CMYKcmyk(28.1%, 84.3%, 0%, 65.1%)
CIE-LABlab(16.13, 36.49, -33.75)
CIE-LCHlch(16.13, 49.71, 317.23°)
OKLaboklab(29.35% 0.0835 -0.0957)
OKLCHoklch(29.35% 0.127 311.1)
XYZxyz(4.0742, 2.1254, 9.6449)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E59 #27590E
analogous
#1A0E59 #400E59 #590E4C
triadic
#400E59 #59400E #0E5940
tetradic
#400E59 #591A0E #27590E #0E4C59
square
#400E59 #591A0E #27590E #0E4C59
split-complementary
#400E59 #4C590E #0E591A
monochromatic
#13041A #1A0624 #400E59 #66168E #8C1FC3

Accessibility & contrast

On white

14.74
#400E59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#400E59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E59
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E59#FFFFFF#000000##FFFFFF
##400E591.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.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: #400e59;
/* rgb */ color: rgb(64, 14, 89);
/* oklch */ color: oklch(29.3% 0.127 311.1);
Tailwind
colors: {
  custom: {
    50: '#785388',
    500: '#400e59',
    950: '#000000',
  },
}
SCSS
$custom: #400e59;
$custom-light: #785388;
$custom-dark: #000000;
JSON
{
  "hex": "#400e59",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 89
  },
  "hsl": {
    "h": 280,
    "s": 72.816,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29347,
    "c": 0.12698,
    "h": 311.1
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#400E59
secondary
#519330
accent
#F03875
background
#F7F5F8
surface
#EEE8F0
border
#C9C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E59

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

Preview Lab → · Contrast checker → · Palette generator →

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