#400D33#400D33

#400D33 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.5% C 0.092 H 339.8°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#400D33
RGBrgb(64, 13, 51)
HSLhsl(315, 66%, 15%)
HSVhsv(315, 80%, 25%)
CMYKcmyk(0%, 79.7%, 20.3%, 74.9%)
CIE-LABlab(13.33, 29.00, -11.74)
CIE-LCHlch(13.33, 31.29, 337.97°)
OKLaboklab(26.5% 0.0863 -0.0317)
OKLCHoklch(26.5% 0.092 339.8)
XYZxyz(2.8559, 1.6171, 3.2931)
Luminance0.0162 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D33 #0D401A
analogous
#330D40 #400D33 #400D19
triadic
#400D33 #33400D #0D3340
tetradic
#400D33 #40330D #0D401A #0D1940
square
#400D33 #40330D #0D401A #0D1940
split-complementary
#400D33 #19400D #0D4033
monochromatic
#190514 #190514 #400D33 #73175C #A62284

Accessibility & contrast

On white

15.87
#400D33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400D33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D33
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D33#FFFFFF#000000##FFFFFF
##400D331.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101D34
Deuteranopia (green-blind)
#202532
Tritanopia (blue-blind)
#440F1E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400d33;
/* rgb */ color: rgb(64, 13, 51);
/* oklch */ color: oklch(26.5% 0.092 339.8);
Tailwind
colors: {
  custom: {
    50: '#77516a',
    500: '#400d33',
    950: '#000000',
  },
}
SCSS
$custom: #400d33;
$custom-light: #77516a;
$custom-dark: #000000;
JSON
{
  "hex": "#400d33",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 51
  },
  "hsl": {
    "h": 315.294,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26502,
    "c": 0.09193,
    "h": 339.8
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#400D33
secondary
#2D7C41
accent
#E96A3F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400D33

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

Preview Lab → · Contrast checker → · Palette generator →

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