#400D57#400D57

#400D57 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.1% C 0.126 H 312.4°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#400D57
RGBrgb(64, 13, 87)
HSLhsl(281, 74%, 20%)
HSVhsv(281, 85%, 34%)
CMYKcmyk(26.4%, 85.1%, 0%, 65.9%)
CIE-LABlab(15.83, 36.40, -32.90)
CIE-LCHlch(15.83, 49.06, 317.90°)
OKLaboklab(29.08% 0.0849 -0.0931)
OKLCHoklch(29.08% 0.126 312.4)
XYZxyz(3.9783, 2.0661, 9.2042)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D57 #24570D
analogous
#1B0D57 #400D57 #570D49
triadic
#400D57 #57400D #0D5740
tetradic
#400D57 #571B0D #24570D #0D4957
square
#400D57 #571B0D #24570D #0D4957
split-complementary
#400D57 #49570D #0D571B
monochromatic
#14041B #190522 #400D57 #67158C #8E1DC1

Accessibility & contrast

On white

14.86
#400D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D57
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D57#FFFFFF#000000##FFFFFF
##400D571.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#022855
Tritanopia (blue-blind)
#3D1F32
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400d57;
/* rgb */ color: rgb(64, 13, 87);
/* oklch */ color: oklch(29.1% 0.126 312.4);
Tailwind
colors: {
  custom: {
    50: '#785387',
    500: '#400d57',
    950: '#000000',
  },
}
SCSS
$custom: #400d57;
$custom-light: #785387;
$custom-dark: #000000;
JSON
{
  "hex": "#400d57",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 87
  },
  "hsl": {
    "h": 281.351,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29082,
    "c": 0.12603,
    "h": 312.4
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#400D57
secondary
#4D922E
accent
#F13771
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400D57

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

Preview Lab → · Contrast checker → · Palette generator →

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