#402638#402638

#402638 is a dark, muted pink. Relative luminance 0.028; OKLCH L 30.8% C 0.048 H 339.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#402638
RGBrgb(64, 38, 56)
HSLhsl(318, 25%, 20%)
HSVhsv(318, 41%, 25%)
CMYKcmyk(0%, 40.6%, 12.5%, 74.9%)
CIE-LABlab(19.06, 15.55, -6.52)
CIE-LCHlch(19.06, 16.86, 337.26°)
OKLaboklab(30.84% 0.0452 -0.0174)
OKLCHoklch(30.84% 0.048 339)
XYZxyz(3.5213, 2.7619, 4.0882)
Luminance0.0276 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402638 #26402E
analogous
#3B2640 #402638 #40262B
triadic
#402638 #384026 #263840
tetradic
#402638 #403B26 #26402E #262B40
square
#402638 #403B26 #26402E #262B40
split-complementary
#402638 #2B4026 #26403B
monochromatic
#130B11 #1A0F16 #402638 #663D5A #8D547B

Accessibility & contrast

On white

13.53
#402638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#402638 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402638
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402638#FFFFFF#000000##FFFFFF
##4026381.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272C39
Deuteranopia (green-blind)
#2D3037
Tritanopia (blue-blind)
#43272C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #402638;
/* rgb */ color: rgb(64, 38, 56);
/* oklch */ color: oklch(30.8% 0.048 339.0);
Tailwind
colors: {
  custom: {
    50: '#75616e',
    500: '#402638',
    950: '#000000',
  },
}
SCSS
$custom: #402638;
$custom-light: #75616e;
$custom-dark: #000000;
JSON
{
  "hex": "#402638",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 56
  },
  "hsl": {
    "h": 318.462,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.30842,
    "c": 0.04839,
    "h": 339
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#402638
secondary
#50725A
accent
#C28266
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080507
muted
#7B797A

Preview Lab

Preview with #402638

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

Preview Lab → · Contrast checker → · Palette generator →

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