#402838#402838

#402838 is a dark, muted pink. Relative luminance 0.029; OKLCH L 31.3% C 0.044 H 339.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#402838
RGBrgb(64, 40, 56)
HSLhsl(320, 23%, 20%)
HSVhsv(320, 38%, 25%)
CMYKcmyk(0%, 37.5%, 12.5%, 74.9%)
CIE-LABlab(19.61, 14.21, -5.69)
CIE-LCHlch(19.61, 15.31, 338.18°)
OKLaboklab(31.26% 0.0413 -0.0151)
OKLCHoklch(31.26% 0.044 339.9)
XYZxyz(3.5869, 2.8933, 4.1101)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402838 #284030
analogous
#3C2840 #402838 #40282C
triadic
#402838 #384028 #283840
tetradic
#402838 #403C28 #284030 #282C40
square
#402838 #403C28 #284030 #282C40
split-complementary
#402838 #2C4028 #28403C
monochromatic
#130C10 #1A1017 #402838 #664059 #8B577A

Accessibility & contrast

On white

13.30
#402838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#402838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402838
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402838#FFFFFF#000000##FFFFFF
##4028381.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292D39
Deuteranopia (green-blind)
#2F3137
Tritanopia (blue-blind)
#43282E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402838;
/* rgb */ color: rgb(64, 40, 56);
/* oklch */ color: oklch(31.3% 0.044 339.9);
Tailwind
colors: {
  custom: {
    50: '#75626e',
    500: '#402838',
    950: '#000000',
  },
}
SCSS
$custom: #402838;
$custom-light: #75626e;
$custom-dark: #000000;
JSON
{
  "hex": "#402838",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 320,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31258,
    "c": 0.04401,
    "h": 339.9
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#402838
secondary
#52725D
accent
#C08568
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080507
muted
#7B797A

Preview Lab

Preview with #402838

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

Preview Lab → · Contrast checker → · Palette generator →

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