#402834#402834

#402834 is a dark, muted pink. Relative luminance 0.029; OKLCH L 31.1% C 0.041 H 348.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#402834
RGBrgb(64, 40, 52)
HSLhsl(330, 23%, 20%)
HSVhsv(330, 38%, 25%)
CMYKcmyk(0%, 37.5%, 18.8%, 74.9%)
CIE-LABlab(19.46, 13.41, -3.15)
CIE-LCHlch(19.46, 13.77, 346.77°)
OKLaboklab(31.09% 0.0397 -0.0082)
OKLCHoklch(31.09% 0.041 348.3)
XYZxyz(3.4930, 2.8557, 3.6154)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402834 #284034
analogous
#402840 #402834 #402828
triadic
#402834 #344028 #283440
tetradic
#402834 #404028 #284034 #282840
square
#402834 #404028 #284034 #282840
split-complementary
#402834 #284028 #284040
monochromatic
#130C0F #1A1015 #402834 #664053 #8B5771

Accessibility & contrast

On white

13.37
#402834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#402834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402834
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402834#FFFFFF#000000##FFFFFF
##4028341.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2D34
Deuteranopia (green-blind)
#303133
Tritanopia (blue-blind)
#43282C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402834;
/* rgb */ color: rgb(64, 40, 52);
/* oklch */ color: oklch(31.1% 0.041 348.3);
Tailwind
colors: {
  custom: {
    50: '#75626b',
    500: '#402834',
    950: '#000000',
  },
}
SCSS
$custom: #402834;
$custom-light: #75626b;
$custom-dark: #000000;
JSON
{
  "hex": "#402834",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 52
  },
  "hsl": {
    "h": 330,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31089,
    "c": 0.04055,
    "h": 348.3
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#402834
secondary
#527262
accent
#C09468
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080506
muted
#7B797A

Preview Lab

Preview with #402834

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

Preview Lab → · Contrast checker → · Palette generator →

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