#400536#400536

#400536 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.9% C 0.105 H 336.4°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#400536
RGBrgb(64, 5, 54)
HSLhsl(310, 86%, 14%)
HSVhsv(310, 92%, 25%)
CMYKcmyk(0%, 92.2%, 15.6%, 74.9%)
CIE-LABlab(12.38, 32.71, -15.39)
CIE-LCHlch(12.38, 36.15, 334.80°)
OKLaboklab(25.87% 0.0963 -0.042)
OKLCHoklch(25.87% 0.105 336.4)
XYZxyz(2.8345, 1.4651, 3.6228)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400536 #05400F
analogous
#2C0540 #400536 #400518
triadic
#400536 #364005 #053640
tetradic
#400536 #402C05 #05400F #051840
square
#400536 #402C05 #05400F #051840
split-complementary
#400536 #184005 #05402C
monochromatic
#1C0218 #1C0218 #400536 #790966 #B20E96

Accessibility & contrast

On white

16.24
#400536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400536
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400536#FFFFFF#000000##FFFFFF
##4005361.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061B37
Deuteranopia (green-blind)
#1C2335
Tritanopia (blue-blind)
#44091D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400536;
/* rgb */ color: rgb(64, 5, 54);
/* oklch */ color: oklch(25.9% 0.105 336.4);
Tailwind
colors: {
  custom: {
    50: '#784e6d',
    500: '#400536',
    950: '#000000',
  },
}
SCSS
$custom: #400536;
$custom-light: #784e6d;
$custom-dark: #000000;
JSON
{
  "hex": "#400536",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 54
  },
  "hsl": {
    "h": 310.169,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25873,
    "c": 0.10507,
    "h": 336.4
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#400536
secondary
#208131
accent
#FC4F2C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400536

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

Preview Lab → · Contrast checker → · Palette generator →

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