#40031C#40031C

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

Color values

HEX#40031C
RGBrgb(64, 3, 28)
HSLhsl(335, 91%, 13%)
HSVhsv(335, 95%, 25%)
CMYKcmyk(0%, 95.3%, 56.2%, 74.9%)
CIE-LABlab(10.84, 30.09, 1.61)
CIE-LCHlch(10.84, 30.14, 3.06°)
OKLaboklab(24.35% 0.0925 0.0044)
OKLCHoklch(24.35% 0.093 2.7)
XYZxyz(2.3567, 1.2393, 1.2135)
Luminance0.0124 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40031C #034027
analogous
#40033A #40031C #400803
triadic
#40031C #1C4003 #031C40
tetradic
#40031C #3A4003 #034027 #080340
square
#40031C #3A4003 #034027 #080340
split-complementary
#40031C #034008 #033A40
monochromatic
#1D010D #1D010D #40031C #7A0636 #B5084F

Accessibility & contrast

On white

16.83
#40031C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40031C
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40031C#FFFFFF#000000##FFFFFF
##40031C1.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40031c;
/* rgb */ color: rgb(64, 3, 28);
/* oklch */ color: oklch(24.4% 0.093 2.7);
Tailwind
colors: {
  custom: {
    50: '#794b57',
    500: '#40031c',
    950: '#000000',
  },
}
SCSS
$custom: #40031c;
$custom-light: #794b57;
$custom-dark: #000000;
JSON
{
  "hex": "#40031c",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 28
  },
  "hsl": {
    "h": 335.41,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24354,
    "c": 0.09256,
    "h": 2.7
  },
  "luminance": 0.01239
}

Semantic roles & 50–950 ramp

primary
#40031C
secondary
#1D8259
accent
#FFA729
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40031C

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

Preview Lab → · Contrast checker → · Palette generator →

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