#40042F#40042F

#40042F is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.101 H 342.8°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#40042F
RGBrgb(64, 4, 47)
HSLhsl(317, 88%, 13%)
HSVhsv(317, 94%, 25%)
CMYKcmyk(0%, 93.8%, 26.6%, 74.9%)
CIE-LABlab(11.84, 32.01, -11.14)
CIE-LCHlch(11.84, 33.90, 340.82°)
OKLaboklab(25.35% 0.0968 -0.0299)
OKLCHoklch(25.35% 0.101 342.8)
XYZxyz(2.6710, 1.3824, 2.8149)
Luminance0.0138 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40042F #044015
analogous
#330440 #40042F #400411
triadic
#40042F #2F4004 #042F40
tetradic
#40042F #403304 #044015 #041140
square
#40042F #403304 #044015 #041140
split-complementary
#40042F #114004 #044033
monochromatic
#1D0215 #1D0215 #40042F #7A0859 #B30B84

Accessibility & contrast

On white

16.45
#40042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#40042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40042F
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40042F#FFFFFF#000000##FFFFFF
##40042F1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1930
Deuteranopia (green-blind)
#1F232E
Tritanopia (blue-blind)
#450419
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40042f;
/* rgb */ color: rgb(64, 4, 47);
/* oklch */ color: oklch(25.4% 0.101 342.8);
Tailwind
colors: {
  custom: {
    50: '#784d67',
    500: '#40042f',
    950: '#000000',
  },
}
SCSS
$custom: #40042f;
$custom-light: #784d67;
$custom-dark: #000000;
JSON
{
  "hex": "#40042f",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 317,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25351,
    "c": 0.10126,
    "h": 342.8
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#40042F
secondary
#1F813B
accent
#FE6629
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40042F

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

Preview Lab → · Contrast checker → · Palette generator →

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