#40031D#40031D

#40031D is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.4% C 0.093 H 1.6°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#40031D
RGBrgb(64, 3, 29)
HSLhsl(334, 91%, 13%)
HSVhsv(334, 95%, 25%)
CMYKcmyk(0%, 95.3%, 54.7%, 74.9%)
CIE-LABlab(10.88, 30.19, 0.90)
CIE-LCHlch(10.88, 30.20, 1.70°)
OKLaboklab(24.39% 0.0929 0.0026)
OKLCHoklch(24.39% 0.093 1.6)
XYZxyz(2.3689, 1.2442, 1.2776)
Luminance0.0124 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40031D #034026
analogous
#40033B #40031D #400703
triadic
#40031D #1D4003 #031D40
tetradic
#40031D #3B4003 #034026 #070340
square
#40031D #3B4003 #034026 #070340
split-complementary
#40031D #034007 #033B40
monochromatic
#1D010D #1D010D #40031D #7A0637 #B50852

Accessibility & contrast

On white

16.82
#40031D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40031D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40031D
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40031D#FFFFFF#000000##FFFFFF
##40031D1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12161E
Deuteranopia (green-blind)
#23211C
Tritanopia (blue-blind)
#46000F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40031d;
/* rgb */ color: rgb(64, 3, 29);
/* oklch */ color: oklch(24.4% 0.093 1.6);
Tailwind
colors: {
  custom: {
    50: '#794c58',
    500: '#40031d',
    950: '#000000',
  },
}
SCSS
$custom: #40031d;
$custom-light: #794c58;
$custom-dark: #000000;
JSON
{
  "hex": "#40031d",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 29
  },
  "hsl": {
    "h": 334.426,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24391,
    "c": 0.0929,
    "h": 1.6
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#40031D
secondary
#1D8257
accent
#FFA429
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40031D

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

Preview Lab → · Contrast checker → · Palette generator →

#40031D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva