#400B34#400B34

#400B34 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.3% C 0.096 H 338.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#400B34
RGBrgb(64, 11, 52)
HSLhsl(314, 71%, 15%)
HSVhsv(314, 83%, 25%)
CMYKcmyk(0%, 82.8%, 18.8%, 74.9%)
CIE-LABlab(13.09, 30.01, -12.83)
CIE-LCHlch(13.09, 32.64, 336.84°)
OKLaboklab(26.34% 0.089 -0.0348)
OKLCHoklch(26.34% 0.096 338.7)
XYZxyz(2.8539, 1.5775, 3.4023)
Luminance0.0158 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B34 #0B4017
analogous
#320B40 #400B34 #400B1A
triadic
#400B34 #34400B #0B3440
tetradic
#400B34 #40320B #0B4017 #0B1A40
square
#400B34 #40320B #0B4017 #0B1A40
split-complementary
#400B34 #1A400B #0B4032
monochromatic
#1A0415 #1A0415 #400B34 #74145E #A81D89

Accessibility & contrast

On white

15.96
#400B34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B34
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B34#FFFFFF#000000##FFFFFF
##400B341.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1C35
Deuteranopia (green-blind)
#1F2533
Tritanopia (blue-blind)
#440D1E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400b34;
/* rgb */ color: rgb(64, 11, 52);
/* oklch */ color: oklch(26.3% 0.096 338.7);
Tailwind
colors: {
  custom: {
    50: '#77506b',
    500: '#400b34',
    950: '#000000',
  },
}
SCSS
$custom: #400b34;
$custom-light: #77506b;
$custom-dark: #000000;
JSON
{
  "hex": "#400b34",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 52
  },
  "hsl": {
    "h": 313.585,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26344,
    "c": 0.09554,
    "h": 338.7
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#400B34
secondary
#2A7D3D
accent
#ED633A
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400B34

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

Preview Lab → · Contrast checker → · Palette generator →

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