#40403D#40403D

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

Color values

HEX#40403D
RGBrgb(64, 64, 61)
HSLhsl(60, 2%, 25%)
HSVhsv(60, 5%, 25%)
CMYKcmyk(0%, 0%, 4.7%, 74.9%)
CIE-LABlab(27.00, -0.66, 1.83)
CIE-LCHlch(27.00, 1.95, 109.79°)
OKLaboklab(37.05% -0.0014 0.0048)
OKLCHoklch(37.05% 0.005 106.6)
XYZxyz(4.7899, 5.0937, 5.1448)
Luminance0.0509 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40403D #3D3D40
analogous
#403F3D #40403D #3F403D
triadic
#40403D #3D4040 #403D40
tetradic
#40403D #3D403F #3D3D40 #403D3F
square
#40403D #3D403F #3D3D40 #403D3F
split-complementary
#40403D #3D3F40 #3F3D40
monochromatic
#10100F #21211F #40403D #5F5F5B #7F7F79

Accessibility & contrast

On white

10.40
#40403D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40403D
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40403D#FFFFFF#000000##FFFFFF
##40403D1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40403d;
/* rgb */ color: rgb(64, 64, 61);
/* oklch */ color: oklch(37.0% 0.005 106.6);
Tailwind
colors: {
  custom: {
    50: '#747472',
    500: '#40403d',
    950: '#000000',
  },
}
SCSS
$custom: #40403d;
$custom-light: #747472;
$custom-dark: #000000;
JSON
{
  "hex": "#40403d",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 61
  },
  "hsl": {
    "h": 60,
    "s": 2.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.37045,
    "c": 0.00503,
    "h": 106.6
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#40403D
secondary
#6B6B6E
accent
#7CAC7C
background
#F7F7F6
surface
#EDEDEC
border
#C8C8C7
text
#080808
muted
#7B7B7B

Preview Lab

Preview with #40403D

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

Preview Lab → · Contrast checker → · Palette generator →

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