#40313B#40313B

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

Color values

HEX#40313B
RGBrgb(64, 49, 59)
HSLhsl(320, 13%, 22%)
HSVhsv(320, 23%, 25%)
CMYKcmyk(0%, 23.4%, 7.8%, 74.9%)
CIE-LABlab(22.31, 8.81, -3.71)
CIE-LCHlch(22.31, 9.56, 337.16°)
OKLaboklab(33.37% 0.0253 -0.0098)
OKLCHoklch(33.37% 0.027 338.8)
XYZxyz(4.0020, 3.6025, 4.6214)
Luminance0.0360 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40313B #314036
analogous
#3E3140 #40313B #403134
triadic
#40313B #3B4031 #313B40
tetradic
#40313B #403E31 #314036 #313440
square
#40313B #403E31 #314036 #313440
split-complementary
#40313B #344031 #31403E
monochromatic
#110D10 #1D161B #40313B #634C5B #85667B

Accessibility & contrast

On white

12.21
#40313B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40313B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40313B#FFFFFF#000000##FFFFFF
##40313B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31343B
Deuteranopia (green-blind)
#35363B
Tritanopia (blue-blind)
#423134
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40313b;
/* rgb */ color: rgb(64, 49, 59);
/* oklch */ color: oklch(33.4% 0.027 338.8);
Tailwind
colors: {
  custom: {
    50: '#756970',
    500: '#40313b',
    950: '#000000',
  },
}
SCSS
$custom: #40313b;
$custom-light: #756970;
$custom-dark: #000000;
JSON
{
  "hex": "#40313b",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 59
  },
  "hsl": {
    "h": 320,
    "s": 13.274,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33366,
    "c": 0.02716,
    "h": 338.8
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#40313B
secondary
#5D7063
accent
#B68872
background
#F7F6F6
surface
#EDEBEC
border
#C8C6C7
text
#080607
muted
#7B7A7A

Preview Lab

Preview with #40313B

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

Preview Lab → · Contrast checker → · Palette generator →

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