#400534#400534

#400534 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.7% C 0.104 H 338.2°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#400534
RGBrgb(64, 5, 52)
HSLhsl(312, 86%, 14%)
HSVhsv(312, 92%, 25%)
CMYKcmyk(0%, 92.2%, 18.8%, 74.9%)
CIE-LABlab(12.27, 32.38, -14.13)
CIE-LCHlch(12.27, 35.33, 336.43°)
OKLaboklab(25.75% 0.0961 -0.0384)
OKLCHoklch(25.75% 0.104 338.2)
XYZxyz(2.7885, 1.4467, 3.3805)
Luminance0.0145 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400534 #054011
analogous
#2E0540 #400534 #400516
triadic
#400534 #344005 #053440
tetradic
#400534 #402E05 #054011 #051640
square
#400534 #402E05 #054011 #051640
split-complementary
#400534 #164005 #05402E
monochromatic
#1C0217 #1C0217 #400534 #790962 #B20E90

Accessibility & contrast

On white

16.29
#400534 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400534 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400534
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400534#FFFFFF#000000##FFFFFF
##4005341.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081A35
Deuteranopia (green-blind)
#1D2333
Tritanopia (blue-blind)
#44081C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400534;
/* rgb */ color: rgb(64, 5, 52);
/* oklch */ color: oklch(25.7% 0.104 338.2);
Tailwind
colors: {
  custom: {
    50: '#784e6b',
    500: '#400534',
    950: '#000000',
  },
}
SCSS
$custom: #400534;
$custom-light: #784e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#400534",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 52
  },
  "hsl": {
    "h": 312.203,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25748,
    "c": 0.10352,
    "h": 338.2
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#400534
secondary
#208134
accent
#FC562C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400534

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

Preview Lab → · Contrast checker → · Palette generator →

#400534 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva