#40042B#40042B

#40042B is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.1% C 0.099 H 346.8°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#40042B
RGBrgb(64, 4, 43)
HSLhsl(321, 88%, 13%)
HSVhsv(321, 94%, 25%)
CMYKcmyk(0%, 93.8%, 32.8%, 74.9%)
CIE-LABlab(11.63, 31.44, -8.51)
CIE-LCHlch(11.63, 32.57, 344.85°)
OKLaboklab(25.13% 0.096 -0.0225)
OKLCHoklch(25.13% 0.099 346.8)
XYZxyz(2.5939, 1.3515, 2.4093)
Luminance0.0135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40042B #044019
analogous
#370440 #40042B #40040D
triadic
#40042B #2B4004 #042B40
tetradic
#40042B #403704 #044019 #040D40
square
#40042B #403704 #044019 #040D40
split-complementary
#40042B #0D4004 #044037
monochromatic
#1D0213 #1D0213 #40042B #7A0852 #B30B78

Accessibility & contrast

On white

16.53
#40042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40042B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40042B
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40042B#FFFFFF#000000##FFFFFF
##40042B1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182C
Deuteranopia (green-blind)
#20222A
Tritanopia (blue-blind)
#450217
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40042b;
/* rgb */ color: rgb(64, 4, 43);
/* oklch */ color: oklch(25.1% 0.099 346.8);
Tailwind
colors: {
  custom: {
    50: '#784d64',
    500: '#40042b',
    950: '#000000',
  },
}
SCSS
$custom: #40042b;
$custom-light: #784d64;
$custom-dark: #000000;
JSON
{
  "hex": "#40042b",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 321,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25133,
    "c": 0.09858,
    "h": 346.8
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#40042B
secondary
#1F8141
accent
#FE7429
background
#F7F4F5
surface
#EEE7EA
border
#C9C3C6
text
#090105
muted
#7B7779

Preview Lab

Preview with #40042B

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

Preview Lab → · Contrast checker → · Palette generator →

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