#40031E#40031E

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

Color values

HEX#40031E
RGBrgb(64, 3, 30)
HSLhsl(333, 91%, 13%)
HSVhsv(333, 95%, 25%)
CMYKcmyk(0%, 95.3%, 53.1%, 74.9%)
CIE-LABlab(10.92, 30.30, 0.19)
CIE-LCHlch(10.92, 30.30, 0.35°)
OKLaboklab(24.43% 0.0933 0.0008)
OKLCHoklch(24.43% 0.093 0.5)
XYZxyz(2.3815, 1.2492, 1.3438)
Luminance0.0125 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40031E #034025
analogous
#40033C #40031E #400703
triadic
#40031E #1E4003 #031E40
tetradic
#40031E #3C4003 #034025 #070340
square
#40031E #3C4003 #034025 #070340
split-complementary
#40031E #034007 #033C40
monochromatic
#1D010E #1D010E #40031E #7A0639 #B50855

Accessibility & contrast

On white

16.80
#40031E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40031E
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40031E#FFFFFF#000000##FFFFFF
##40031E1.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40031e;
/* rgb */ color: rgb(64, 3, 30);
/* oklch */ color: oklch(24.4% 0.093 0.5);
Tailwind
colors: {
  custom: {
    50: '#794c59',
    500: '#40031e',
    950: '#000000',
  },
}
SCSS
$custom: #40031e;
$custom-light: #794c59;
$custom-dark: #000000;
JSON
{
  "hex": "#40031e",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 30
  },
  "hsl": {
    "h": 333.443,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24429,
    "c": 0.09327,
    "h": 0.5
  },
  "luminance": 0.01249
}

Semantic roles & 50–950 ramp

primary
#40031E
secondary
#1D8255
accent
#FFA029
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40031E

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

Preview Lab → · Contrast checker → · Palette generator →

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