#40313D#40313D

#40313D is a dark, muted pink. Relative luminance 0.036; OKLCH L 33.4% C 0.029 H 333.2°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#40313D
RGBrgb(64, 49, 61)
HSLhsl(312, 13%, 22%)
HSVhsv(312, 23%, 25%)
CMYKcmyk(0%, 23.4%, 4.7%, 74.9%)
CIE-LABlab(22.39, 9.25, -4.96)
CIE-LCHlch(22.39, 10.50, 331.83°)
OKLaboklab(33.45% 0.0262 -0.0132)
OKLCHoklch(33.45% 0.029 333.2)
XYZxyz(4.0549, 3.6236, 4.8998)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40313D #314034
analogous
#3C3140 #40313D #403136
triadic
#40313D #3D4031 #313D40
tetradic
#40313D #403C31 #314034 #313640
square
#40313D #403C31 #314034 #313640
split-complementary
#40313D #364031 #31403C
monochromatic
#110D11 #1D161C #40313D #634C5E #85667F

Accessibility & contrast

On white

12.18
#40313D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#40313D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40313D
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40313D#FFFFFF#000000##FFFFFF
##40313D1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31343D
Deuteranopia (green-blind)
#34363D
Tritanopia (blue-blind)
#423235
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40313d;
/* rgb */ color: rgb(64, 49, 61);
/* oklch */ color: oklch(33.4% 0.029 333.2);
Tailwind
colors: {
  custom: {
    50: '#756972',
    500: '#40313d',
    950: '#000000',
  },
}
SCSS
$custom: #40313d;
$custom-light: #756972;
$custom-dark: #000000;
JSON
{
  "hex": "#40313d",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 61
  },
  "hsl": {
    "h": 312,
    "s": 13.274,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33449,
    "c": 0.02932,
    "h": 333.2
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#40313D
secondary
#5D7061
accent
#B67F72
background
#F7F6F6
surface
#EDEBEC
border
#C8C6C7
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #40313D

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

Preview Lab → · Contrast checker → · Palette generator →

#40313D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva