#402830#402830

#402830 is a dark, muted pink. Relative luminance 0.028; OKLCH L 30.9% C 0.038 H 357.9°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#402830
RGBrgb(64, 40, 48)
HSLhsl(340, 23%, 20%)
HSVhsv(340, 38%, 25%)
CMYKcmyk(0%, 37.5%, 25%, 74.9%)
CIE-LABlab(19.31, 12.64, -0.58)
CIE-LCHlch(19.31, 12.66, 357.36°)
OKLaboklab(30.93% 0.038 -0.0014)
OKLCHoklch(30.93% 0.038 357.9)
XYZxyz(3.4067, 2.8212, 3.1608)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402830 #284038
analogous
#40283C #402830 #402C28
triadic
#402830 #304028 #283040
tetradic
#402830 #3C4028 #284038 #2C2840
square
#402830 #3C4028 #284038 #2C2840
split-complementary
#402830 #28402C #283C40
monochromatic
#130C0E #1A1014 #402830 #66404C #8B5768

Accessibility & contrast

On white

13.43
#402830 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#402830 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402830
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402830#FFFFFF#000000##FFFFFF
##4028301.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2C30
Deuteranopia (green-blind)
#31302F
Tritanopia (blue-blind)
#44272B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402830;
/* rgb */ color: rgb(64, 40, 48);
/* oklch */ color: oklch(30.9% 0.038 357.9);
Tailwind
colors: {
  custom: {
    50: '#756268',
    500: '#402830',
    950: '#000000',
  },
}
SCSS
$custom: #402830;
$custom-light: #756268;
$custom-dark: #000000;
JSON
{
  "hex": "#402830",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 48
  },
  "hsl": {
    "h": 340,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30931,
    "c": 0.038,
    "h": 357.9
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#402830
secondary
#527267
accent
#C0A268
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080506
muted
#7B797A

Preview Lab

Preview with #402830

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

Preview Lab → · Contrast checker → · Palette generator →

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