#40403C#40403C

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

Color values

HEX#40403C
RGBrgb(64, 64, 60)
HSLhsl(60, 3%, 24%)
HSVhsv(60, 6%, 25%)
CMYKcmyk(0%, 0%, 6.2%, 74.9%)
CIE-LABlab(26.97, -0.87, 2.45)
CIE-LCHlch(26.97, 2.60, 109.66°)
OKLaboklab(37.01% -0.0019 0.0064)
OKLCHoklch(37.01% 0.007 106.7)
XYZxyz(4.7632, 5.0830, 5.0043)
Luminance0.0508 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40403C #3C3C40
analogous
#403E3C #40403C #3E403C
triadic
#40403C #3C4040 #403C40
tetradic
#40403C #3C403E #3C3C40 #403C3E
square
#40403C #3C403E #3C3C40 #403C3E
split-complementary
#40403C #3C3E40 #3E3C40
monochromatic
#10100F #20201E #40403C #60605A #7F7F77

Accessibility & contrast

On white

10.41
#40403C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40403C
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40403C#FFFFFF#000000##FFFFFF
##40403C1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41403C
Deuteranopia (green-blind)
#41403C
Tritanopia (blue-blind)
#413F3F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40403c;
/* rgb */ color: rgb(64, 64, 60);
/* oklch */ color: oklch(37.0% 0.007 106.7);
Tailwind
colors: {
  custom: {
    50: '#747471',
    500: '#40403c',
    950: '#000000',
  },
}
SCSS
$custom: #40403c;
$custom-light: #747471;
$custom-dark: #000000;
JSON
{
  "hex": "#40403c",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 60
  },
  "hsl": {
    "h": 60,
    "s": 3.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.37012,
    "c": 0.0067,
    "h": 106.7
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#40403C
secondary
#69696E
accent
#7BAC7B
background
#F7F7F6
surface
#EDEDEC
border
#C8C8C7
text
#080807
muted
#7B7B7A

Preview Lab

Preview with #40403C

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

Preview Lab → · Contrast checker → · Palette generator →

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