#40031F#40031F

#40031F is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.5% C 0.094 H 359.4°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#40031F
RGBrgb(64, 3, 31)
HSLhsl(332, 91%, 13%)
HSVhsv(332, 95%, 25%)
CMYKcmyk(0%, 95.3%, 51.6%, 74.9%)
CIE-LABlab(10.95, 30.40, -0.52)
CIE-LCHlch(10.95, 30.40, 359.02°)
OKLaboklab(24.47% 0.0937 -0.001)
OKLCHoklch(24.47% 0.094 359.4)
XYZxyz(2.3944, 1.2544, 1.4121)
Luminance0.0125 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40031F #034024
analogous
#40033D #40031F #400503
triadic
#40031F #1F4003 #031F40
tetradic
#40031F #3D4003 #034024 #050340
square
#40031F #3D4003 #034024 #050340
split-complementary
#40031F #034005 #033D40
monochromatic
#1D010E #1D010E #40031F #7A063B #B50858

Accessibility & contrast

On white

16.79
#40031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40031F
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40031F#FFFFFF#000000##FFFFFF
##40031F1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121620
Deuteranopia (green-blind)
#23221E
Tritanopia (blue-blind)
#460010
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40031f;
/* rgb */ color: rgb(64, 3, 31);
/* oklch */ color: oklch(24.5% 0.094 359.4);
Tailwind
colors: {
  custom: {
    50: '#794c5a',
    500: '#40031f',
    950: '#000000',
  },
}
SCSS
$custom: #40031f;
$custom-light: #794c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#40031f",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 332.459,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24469,
    "c": 0.09367,
    "h": 359.4
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#40031F
secondary
#1D8254
accent
#FF9D29
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090103
muted
#7B7778

Preview Lab

Preview with #40031F

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

Preview Lab → · Contrast checker → · Palette generator →

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