#402E38#402E38

#402E38 is a dark, muted pink. Relative luminance 0.033; OKLCH L 32.6% C 0.031 H 344.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#402E38
RGBrgb(64, 46, 56)
HSLhsl(327, 16%, 22%)
HSVhsv(327, 28%, 25%)
CMYKcmyk(0%, 28.1%, 12.5%, 74.9%)
CIE-LABlab(21.32, 10.19, -3.14)
CIE-LCHlch(21.32, 10.66, 342.86°)
OKLaboklab(32.57% 0.0298 -0.0082)
OKLCHoklch(32.57% 0.031 344.5)
XYZxyz(3.8051, 3.3296, 4.1829)
Luminance0.0333 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E38 #2E4036
analogous
#3F2E40 #402E38 #402E2F
triadic
#402E38 #38402E #2E3840
tetradic
#402E38 #403F2E #2E4036 #2E2F40
square
#402E38 #403F2E #2E4036 #2E2F40
split-complementary
#402E38 #2F402E #2E403F
monochromatic
#120D10 #1C1419 #402E38 #644857 #876176

Accessibility & contrast

On white

12.61
#402E38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#402E38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E38
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E38#FFFFFF#000000##FFFFFF
##402E381.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3138
Deuteranopia (green-blind)
#333438
Tritanopia (blue-blind)
#422E31
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402e38;
/* rgb */ color: rgb(64, 46, 56);
/* oklch */ color: oklch(32.6% 0.031 344.5);
Tailwind
colors: {
  custom: {
    50: '#75666e',
    500: '#402e38',
    950: '#000000',
  },
}
SCSS
$custom: #402e38;
$custom-light: #75666e;
$custom-dark: #000000;
JSON
{
  "hex": "#402e38",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 56
  },
  "hsl": {
    "h": 326.667,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32565,
    "c": 0.0309,
    "h": 344.5
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#402E38
secondary
#597064
accent
#B9906F
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080607
muted
#7B7A7A

Preview Lab

Preview with #402E38

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

Preview Lab → · Contrast checker → · Palette generator →

#402E38 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva