#40031B#40031B

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

Color values

HEX#40031B
RGBrgb(64, 3, 27)
HSLhsl(336, 91%, 13%)
HSVhsv(336, 95%, 25%)
CMYKcmyk(0%, 95.3%, 57.8%, 74.9%)
CIE-LABlab(10.81, 30.00, 2.32)
CIE-LCHlch(10.81, 30.09, 4.43°)
OKLaboklab(24.32% 0.092 0.0062)
OKLCHoklch(24.32% 0.092 3.9)
XYZxyz(2.3450, 1.2346, 1.1515)
Luminance0.0123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40031B #034028
analogous
#400339 #40031B #400903
triadic
#40031B #1B4003 #031B40
tetradic
#40031B #394003 #034028 #090340
square
#40031B #394003 #034028 #090340
split-complementary
#40031B #034009 #033940
monochromatic
#1D010C #1D010C #40031B #7A0634 #B5084C

Accessibility & contrast

On white

16.84
#40031B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40031B
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40031B#FFFFFF#000000##FFFFFF
##40031B1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40031b;
/* rgb */ color: rgb(64, 3, 27);
/* oklch */ color: oklch(24.3% 0.092 3.9);
Tailwind
colors: {
  custom: {
    50: '#794b56',
    500: '#40031b',
    950: '#000000',
  },
}
SCSS
$custom: #40031b;
$custom-light: #794b56;
$custom-dark: #000000;
JSON
{
  "hex": "#40031b",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 27
  },
  "hsl": {
    "h": 336.393,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24318,
    "c": 0.09224,
    "h": 3.9
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#40031B
secondary
#1D825A
accent
#FFAB29
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40031B

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

Preview Lab → · Contrast checker → · Palette generator →

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