#40403E#40403E

#40403E is a dark, near-neutral grey. Relative luminance 0.051; OKLCH L 37.1% C 0.003 H 106.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#40403E
RGBrgb(64, 64, 62)
HSLhsl(60, 2%, 25%)
HSVhsv(60, 3%, 25%)
CMYKcmyk(0%, 0%, 3.1%, 74.9%)
CIE-LABlab(27.03, -0.44, 1.22)
CIE-LCHlch(27.03, 1.30, 109.93°)
OKLaboklab(37.08% -0.001 0.0032)
OKLCHoklch(37.08% 0.003 106.6)
XYZxyz(4.8171, 5.1046, 5.2880)
Luminance0.0510 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40403E #3E3E40
analogous
#403F3E #40403E #3F403E
triadic
#40403E #3E4040 #403E40
tetradic
#40403E #3E403F #3E3E40 #403E3F
square
#40403E #3E403F #3E3E40 #403E3F
split-complementary
#40403E #3E3F40 #3F3E40
monochromatic
#10100F #212120 #40403E #5F5F5C #7E7E7A

Accessibility & contrast

On white

10.39
#40403E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#40403E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40403E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40403E#FFFFFF#000000##FFFFFF
##40403E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40403E
Deuteranopia (green-blind)
#40403E
Tritanopia (blue-blind)
#40403F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40403e;
/* rgb */ color: rgb(64, 64, 62);
/* oklch */ color: oklch(37.1% 0.003 106.6);
Tailwind
colors: {
  custom: {
    50: '#747473',
    500: '#40403e',
    950: '#000000',
  },
}
SCSS
$custom: #40403e;
$custom-light: #747473;
$custom-dark: #000000;
JSON
{
  "hex": "#40403e",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 62
  },
  "hsl": {
    "h": 60,
    "s": 1.587,
    "l": 24.706
  },
  "oklch": {
    "l": 0.37079,
    "c": 0.00336,
    "h": 106.6
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#40403E
secondary
#6C6C6E
accent
#7DAB7D
background
#F7F7F6
surface
#EDEDEC
border
#C8C8C7
text
#080808
muted
#7B7B7B

Preview Lab

Preview with #40403E

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

Preview Lab → · Contrast checker → · Palette generator →

#40403E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva