#40051F#40051F

#40051F is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.7% C 0.091 H 0.1°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#40051F
RGBrgb(64, 5, 31)
HSLhsl(334, 86%, 14%)
HSVhsv(334, 92%, 25%)
CMYKcmyk(0%, 92.2%, 51.6%, 74.9%)
CIE-LABlab(11.26, 29.51, -0.07)
CIE-LCHlch(11.26, 29.51, 359.87°)
OKLaboklab(24.69% 0.0908 0.0001)
OKLCHoklch(24.69% 0.091 0.1)
XYZxyz(2.4161, 1.2978, 1.4193)
Luminance0.0130 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40051F #054026
analogous
#40053C #40051F #400805
triadic
#40051F #1F4005 #051F40
tetradic
#40051F #3C4005 #054026 #080540
square
#40051F #3C4005 #054026 #080540
split-complementary
#40051F #054008 #053C40
monochromatic
#1C020E #1C020E #40051F #79093A #B20E56

Accessibility & contrast

On white

16.67
#40051F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#40051F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40051F
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40051F#FFFFFF#000000##FFFFFF
##40051F1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131720
Deuteranopia (green-blind)
#23221E
Tritanopia (blue-blind)
#460011
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40051f;
/* rgb */ color: rgb(64, 5, 31);
/* oklch */ color: oklch(24.7% 0.091 0.1);
Tailwind
colors: {
  custom: {
    50: '#794d5a',
    500: '#40051f',
    950: '#000000',
  },
}
SCSS
$custom: #40051f;
$custom-light: #794d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#40051f",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 31
  },
  "hsl": {
    "h": 333.559,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24693,
    "c": 0.0908,
    "h": 0.1
  },
  "luminance": 0.01297
}

Semantic roles & 50–950 ramp

primary
#40051F
secondary
#208156
accent
#FCA02C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090103
muted
#7B7778

Preview Lab

Preview with #40051F

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

Preview Lab → · Contrast checker → · Palette generator →

#40051F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva