#400F28#400F28

#400F28 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.2% C 0.081 H 352.7°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#400F28
RGBrgb(64, 15, 40)
HSLhsl(329, 62%, 15%)
HSVhsv(329, 77%, 25%)
CMYKcmyk(0%, 76.6%, 37.5%, 74.9%)
CIE-LABlab(13.14, 26.36, -4.01)
CIE-LCHlch(13.14, 26.66, 351.36°)
OKLaboklab(26.19% 0.0805 -0.0103)
OKLCHoklch(26.19% 0.081 352.7)
XYZxyz(2.6683, 1.5851, 2.1725)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F28 #0F4027
analogous
#3F0F40 #400F28 #400F0F
triadic
#400F28 #28400F #0F2840
tetradic
#400F28 #403F0F #0F4027 #0F0F40
square
#400F28 #403F0F #0F4027 #0F0F40
split-complementary
#400F28 #0F400F #0F403F
monochromatic
#19060F #19060F #400F28 #721B47 #A32666

Accessibility & contrast

On white

15.95
#400F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F28
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F28#FFFFFF#000000##FFFFFF
##400F281.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171C29
Deuteranopia (green-blind)
#252527
Tritanopia (blue-blind)
#450C19
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f28;
/* rgb */ color: rgb(64, 15, 40);
/* oklch */ color: oklch(26.2% 0.081 352.7);
Tailwind
colors: {
  custom: {
    50: '#775161',
    500: '#400f28',
    950: '#000000',
  },
}
SCSS
$custom: #400f28;
$custom-light: #775161;
$custom-dark: #000000;
JSON
{
  "hex": "#400f28",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 329.388,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26188,
    "c": 0.08116,
    "h": 352.7
  },
  "luminance": 0.01585
}

Semantic roles & 50–950 ramp

primary
#400F28
secondary
#307A55
accent
#E59243
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400F28

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

Preview Lab → · Contrast checker → · Palette generator →

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