#40041B#40041B

#40041B is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.4% C 0.091 H 4.3°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#40041B
RGBrgb(64, 4, 27)
HSLhsl(337, 88%, 13%)
HSVhsv(337, 94%, 25%)
CMYKcmyk(0%, 93.8%, 57.8%, 74.9%)
CIE-LABlab(10.97, 29.55, 2.55)
CIE-LCHlch(10.97, 29.66, 4.93°)
OKLaboklab(24.43% 0.0906 0.0068)
OKLCHoklch(24.43% 0.091 4.3)
XYZxyz(2.3558, 1.2563, 1.1551)
Luminance0.0126 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40041B #044029
analogous
#400439 #40041B #400B04
triadic
#40041B #1B4004 #041B40
tetradic
#40041B #394004 #044029 #0B0440
square
#40041B #394004 #044029 #0B0440
split-complementary
#40041B #04400B #043940
monochromatic
#1D020C #1D020C #40041B #7A0833 #B30B4C

Accessibility & contrast

On white

16.78
#40041B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40041B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40041B
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40041B#FFFFFF#000000##FFFFFF
##40041B1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14161B
Deuteranopia (green-blind)
#24221A
Tritanopia (blue-blind)
#47000E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40041b;
/* rgb */ color: rgb(64, 4, 27);
/* oklch */ color: oklch(24.4% 0.091 4.3);
Tailwind
colors: {
  custom: {
    50: '#794c56',
    500: '#40041b',
    950: '#000000',
  },
}
SCSS
$custom: #40041b;
$custom-light: #794c56;
$custom-dark: #000000;
JSON
{
  "hex": "#40041b",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 27
  },
  "hsl": {
    "h": 337,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24433,
    "c": 0.09082,
    "h": 4.3
  },
  "luminance": 0.01256
}

Semantic roles & 50–950 ramp

primary
#40041B
secondary
#1F815B
accent
#FEAD29
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40041B

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

Preview Lab → · Contrast checker → · Palette generator →

#40041B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva