#403840#403840

#403840 is a dark, near-neutral grey. Relative luminance 0.043; OKLCH L 35.2% C 0.017 H 325.9°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#403840
RGBrgb(64, 56, 64)
HSLhsl(300, 7%, 24%)
HSVhsv(300, 13%, 25%)
CMYKcmyk(0%, 12.5%, 0%, 74.9%)
CIE-LABlab(24.60, 5.25, -3.67)
CIE-LCHlch(24.60, 6.40, 325.04°)
OKLaboklab(35.2% 0.0144 -0.0098)
OKLCHoklch(35.2% 0.017 325.9)
XYZxyz(4.4538, 4.2886, 5.4426)
Luminance0.0429 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403840 #384038
analogous
#3C3840 #403840 #40383C
triadic
#403840 #404038 #384040
tetradic
#403840 #403C38 #384038 #383C40
square
#403840 #403C38 #384038 #383C40
split-complementary
#403840 #3C4038 #38403C
monochromatic
#100E10 #1F1B1F #403840 #615561 #817181

Accessibility & contrast

On white

11.30
#403840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#403840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403840
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403840#FFFFFF#000000##FFFFFF
##4038401.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383A40
Deuteranopia (green-blind)
#393B40
Tritanopia (blue-blind)
#41393B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403840;
/* rgb */ color: rgb(64, 56, 64);
/* oklch */ color: oklch(35.2% 0.017 325.9);
Tailwind
colors: {
  custom: {
    50: '#746e74',
    500: '#403840',
    950: '#000000',
  },
}
SCSS
$custom: #403840;
$custom-light: #746e74;
$custom-dark: #000000;
JSON
{
  "hex": "#403840",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 6.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35203,
    "c": 0.01743,
    "h": 325.9
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#403840
secondary
#656F65
accent
#B07878
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080708
muted
#7B7A7B

Preview Lab

Preview with #403840

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

Preview Lab → · Contrast checker → · Palette generator →

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