#40031A#40031A

#40031A is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.3% C 0.092 H 5.0°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#40031A
RGBrgb(64, 3, 26)
HSLhsl(337, 91%, 13%)
HSVhsv(337, 95%, 25%)
CMYKcmyk(0%, 95.3%, 59.4%, 74.9%)
CIE-LABlab(10.78, 29.90, 3.04)
CIE-LCHlch(10.78, 30.06, 5.81°)
OKLaboklab(24.28% 0.0916 0.008)
OKLCHoklch(24.28% 0.092 5)
XYZxyz(2.3336, 1.2300, 1.0916)
Luminance0.0123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40031A #034029
analogous
#400338 #40031A #400A03
triadic
#40031A #1A4003 #031A40
tetradic
#40031A #384003 #034029 #0A0340
square
#40031A #384003 #034029 #0A0340
split-complementary
#40031A #03400A #033840
monochromatic
#1D010C #1D010C #40031A #7A0632 #B50849

Accessibility & contrast

On white

16.85
#40031A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40031A
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40031A#FFFFFF#000000##FFFFFF
##40031A1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13151A
Deuteranopia (green-blind)
#242119
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40031a;
/* rgb */ color: rgb(64, 3, 26);
/* oklch */ color: oklch(24.3% 0.092 5.0);
Tailwind
colors: {
  custom: {
    50: '#794b56',
    500: '#40031a',
    950: '#000000',
  },
}
SCSS
$custom: #40031a;
$custom-light: #794b56;
$custom-dark: #000000;
JSON
{
  "hex": "#40031a",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 26
  },
  "hsl": {
    "h": 337.377,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24283,
    "c": 0.09195,
    "h": 5
  },
  "luminance": 0.0123
}

Semantic roles & 50–950 ramp

primary
#40031A
secondary
#1D825C
accent
#FFAE29
background
#F7F4F5
surface
#EEE7E8
border
#C9C3C4
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40031A

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

Preview Lab → · Contrast checker → · Palette generator →

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