#403138#403138

#403138 is a dark, muted pink. Relative luminance 0.036; OKLCH L 33.2% C 0.024 H 348.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#403138
RGBrgb(64, 49, 56)
HSLhsl(332, 13%, 22%)
HSVhsv(332, 23%, 25%)
CMYKcmyk(0%, 23.4%, 12.5%, 74.9%)
CIE-LABlab(22.20, 8.17, -1.83)
CIE-LCHlch(22.20, 8.38, 347.36°)
OKLaboklab(33.25% 0.024 -0.0048)
OKLCHoklch(33.25% 0.024 348.8)
XYZxyz(3.9264, 3.5723, 4.2233)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403138 #314039
analogous
#403140 #403138 #403231
triadic
#403138 #384031 #313840
tetradic
#403138 #404031 #314039 #323140
square
#403138 #404031 #314039 #323140
split-complementary
#403138 #314032 #314040
monochromatic
#110D0F #1D161A #403138 #634C56 #856675

Accessibility & contrast

On white

12.25
#403138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#403138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403138
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403138#FFFFFF#000000##FFFFFF
##4031381.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323438
Deuteranopia (green-blind)
#363638
Tritanopia (blue-blind)
#423133
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #403138;
/* rgb */ color: rgb(64, 49, 56);
/* oklch */ color: oklch(33.2% 0.024 348.8);
Tailwind
colors: {
  custom: {
    50: '#75696e',
    500: '#403138',
    950: '#000000',
  },
}
SCSS
$custom: #403138;
$custom-light: #75696e;
$custom-dark: #000000;
JSON
{
  "hex": "#403138",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 56
  },
  "hsl": {
    "h": 332,
    "s": 13.274,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33248,
    "c": 0.02448,
    "h": 348.8
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#403138
secondary
#5D7067
accent
#B69672
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080607
muted
#7B7A7A

Preview Lab

Preview with #403138

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

Preview Lab → · Contrast checker → · Palette generator →

#403138 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva