#402A38#402A38

#402A38 is a dark, muted pink. Relative luminance 0.030; OKLCH L 31.7% C 0.040 H 341.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#402A38
RGBrgb(64, 42, 56)
HSLhsl(322, 21%, 21%)
HSVhsv(322, 34%, 25%)
CMYKcmyk(0%, 34.4%, 12.5%, 74.9%)
CIE-LABlab(20.17, 12.88, -4.85)
CIE-LCHlch(20.17, 13.76, 339.35°)
OKLaboklab(31.68% 0.0375 -0.0128)
OKLCHoklch(31.68% 0.04 341.1)
XYZxyz(3.6561, 3.0316, 4.1332)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A38 #2A4032
analogous
#3D2A40 #402A38 #402A2D
triadic
#402A38 #38402A #2A3840
tetradic
#402A38 #403D2A #2A4032 #2A2D40
square
#402A38 #403D2A #2A4032 #2A2D40
split-complementary
#402A38 #2D402A #2A403D
monochromatic
#120C10 #1B1218 #402A38 #654258 #8A5A79

Accessibility & contrast

On white

13.07
#402A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#402A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A38
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A38#FFFFFF#000000##FFFFFF
##402A381.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2F39
Deuteranopia (green-blind)
#303237
Tritanopia (blue-blind)
#432A2F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402a38;
/* rgb */ color: rgb(64, 42, 56);
/* oklch */ color: oklch(31.7% 0.040 341.1);
Tailwind
colors: {
  custom: {
    50: '#75636e',
    500: '#402a38',
    950: '#000000',
  },
}
SCSS
$custom: #402a38;
$custom-light: #75636e;
$custom-dark: #000000;
JSON
{
  "hex": "#402a38",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 56
  },
  "hsl": {
    "h": 321.818,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31684,
    "c": 0.03962,
    "h": 341.1
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#402A38
secondary
#55715F
accent
#BD896A
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080507
muted
#7B797A

Preview Lab

Preview with #402A38

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

Preview Lab → · Contrast checker → · Palette generator →

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