#400535#400535

#400535 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.8% C 0.104 H 337.3°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#400535
RGBrgb(64, 5, 53)
HSLhsl(311, 86%, 14%)
HSVhsv(311, 92%, 25%)
CMYKcmyk(0%, 92.2%, 17.2%, 74.9%)
CIE-LABlab(12.32, 32.54, -14.76)
CIE-LCHlch(12.32, 35.73, 335.60°)
OKLaboklab(25.81% 0.0962 -0.0402)
OKLCHoklch(25.81% 0.104 337.3)
XYZxyz(2.8113, 1.4558, 3.5004)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400535 #054010
analogous
#2D0540 #400535 #400517
triadic
#400535 #354005 #053540
tetradic
#400535 #402D05 #054010 #051740
square
#400535 #402D05 #054010 #051740
split-complementary
#400535 #174005 #05402D
monochromatic
#1C0218 #1C0218 #400535 #790964 #B20E93

Accessibility & contrast

On white

16.26
#400535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400535
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400535#FFFFFF#000000##FFFFFF
##4005351.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071A36
Deuteranopia (green-blind)
#1D2334
Tritanopia (blue-blind)
#44091D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400535;
/* rgb */ color: rgb(64, 5, 53);
/* oklch */ color: oklch(25.8% 0.104 337.3);
Tailwind
colors: {
  custom: {
    50: '#784e6c',
    500: '#400535',
    950: '#000000',
  },
}
SCSS
$custom: #400535;
$custom-light: #784e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#400535",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 53
  },
  "hsl": {
    "h": 311.186,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2581,
    "c": 0.10429,
    "h": 337.3
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#400535
secondary
#208132
accent
#FC532C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400535

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

Preview Lab → · Contrast checker → · Palette generator →

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