#40051E#40051E

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

Color values

HEX#40051E
RGBrgb(64, 5, 30)
HSLhsl(335, 86%, 14%)
HSVhsv(335, 92%, 25%)
CMYKcmyk(0%, 92.2%, 53.1%, 74.9%)
CIE-LABlab(11.22, 29.41, 0.64)
CIE-LCHlch(11.22, 29.42, 1.24°)
OKLaboklab(24.65% 0.0904 0.002)
OKLCHoklch(24.65% 0.09 1.2)
XYZxyz(2.4032, 1.2926, 1.3510)
Luminance0.0129 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40051E #054027
analogous
#40053B #40051E #400905
triadic
#40051E #1E4005 #051E40
tetradic
#40051E #3B4005 #054027 #090540
square
#40051E #3B4005 #054027 #090540
split-complementary
#40051E #054009 #053B40
monochromatic
#1C020D #1C020D #40051E #790939 #B20E53

Accessibility & contrast

On white

16.69
#40051E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40051E
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40051E#FFFFFF#000000##FFFFFF
##40051E1.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13171F
Deuteranopia (green-blind)
#23221D
Tritanopia (blue-blind)
#460010
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40051e;
/* rgb */ color: rgb(64, 5, 30);
/* oklch */ color: oklch(24.7% 0.090 1.2);
Tailwind
colors: {
  custom: {
    50: '#794d59',
    500: '#40051e',
    950: '#000000',
  },
}
SCSS
$custom: #40051e;
$custom-light: #794d59;
$custom-dark: #000000;
JSON
{
  "hex": "#40051e",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 30
  },
  "hsl": {
    "h": 334.576,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24655,
    "c": 0.09042,
    "h": 1.2
  },
  "luminance": 0.01292
}

Semantic roles & 50–950 ramp

primary
#40051E
secondary
#208158
accent
#FCA42C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090103
muted
#7B7778

Preview Lab

Preview with #40051E

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

Preview Lab → · Contrast checker → · Palette generator →

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