#400F2B#400F2B

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

Color values

HEX#400F2B
RGBrgb(64, 15, 43)
HSLhsl(326, 62%, 15%)
HSVhsv(326, 77%, 25%)
CMYKcmyk(0%, 76.6%, 32.8%, 74.9%)
CIE-LABlab(13.27, 26.80, -6.01)
CIE-LCHlch(13.27, 27.47, 347.35°)
OKLaboklab(26.33% 0.0815 -0.0157)
OKLCHoklch(26.33% 0.083 349.1)
XYZxyz(2.7213, 1.6063, 2.4518)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F2B #0F4024
analogous
#3C0F40 #400F2B #400F13
triadic
#400F2B #2B400F #0F2B40
tetradic
#400F2B #403C0F #0F4024 #0F1340
square
#400F2B #403C0F #0F4024 #0F1340
split-complementary
#400F2B #13400F #0F403C
monochromatic
#190611 #190611 #400F2B #721B4C #A3266E

Accessibility & contrast

On white

15.89
#400F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F2B
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F2B#FFFFFF#000000##FFFFFF
##400F2B1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161D2C
Deuteranopia (green-blind)
#24252A
Tritanopia (blue-blind)
#450D1B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f2b;
/* rgb */ color: rgb(64, 15, 43);
/* oklch */ color: oklch(26.3% 0.083 349.1);
Tailwind
colors: {
  custom: {
    50: '#775264',
    500: '#400f2b',
    950: '#000000',
  },
}
SCSS
$custom: #400f2b;
$custom-light: #775264;
$custom-dark: #000000;
JSON
{
  "hex": "#400f2b",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 43
  },
  "hsl": {
    "h": 325.714,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26326,
    "c": 0.08302,
    "h": 349.1
  },
  "luminance": 0.01606
}

Semantic roles & 50–950 ramp

primary
#400F2B
secondary
#307A50
accent
#E58843
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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