#40403A#40403A

#40403A is a dark, near-neutral grey. Relative luminance 0.051; OKLCH L 36.9% C 0.010 H 106.9°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#40403A
RGBrgb(64, 64, 58)
HSLhsl(60, 5%, 24%)
HSVhsv(60, 9%, 25%)
CMYKcmyk(0%, 0%, 9.4%, 74.9%)
CIE-LABlab(26.91, -1.29, 3.67)
CIE-LCHlch(26.91, 3.89, 109.39°)
OKLaboklab(36.95% -0.0029 0.0096)
OKLCHoklch(36.95% 0.01 106.9)
XYZxyz(4.7114, 5.0623, 4.7311)
Luminance0.0506 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40403A #3A3A40
analogous
#403D3A #40403A #3D403A
triadic
#40403A #3A4040 #403A40
tetradic
#40403A #3A403D #3A3A40 #403A3D
square
#40403A #3A403D #3A3A40 #403A3D
split-complementary
#40403A #3A3D40 #3D3A40
monochromatic
#10100F #20201D #40403A #606057 #808074

Accessibility & contrast

On white

10.44
#40403A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#40403A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40403A
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40403A#FFFFFF#000000##FFFFFF
##40403A1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413F3A
Deuteranopia (green-blind)
#41403A
Tritanopia (blue-blind)
#413F3E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40403a;
/* rgb */ color: rgb(64, 64, 58);
/* oklch */ color: oklch(36.9% 0.010 106.9);
Tailwind
colors: {
  custom: {
    50: '#747470',
    500: '#40403a',
    950: '#000000',
  },
}
SCSS
$custom: #40403a;
$custom-light: #747470;
$custom-dark: #000000;
JSON
{
  "hex": "#40403a",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 58
  },
  "hsl": {
    "h": 60,
    "s": 4.918,
    "l": 23.922
  },
  "oklch": {
    "l": 0.36946,
    "c": 0.01002,
    "h": 106.9
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#40403A
secondary
#67676F
accent
#7AAE7A
background
#F7F7F6
surface
#EDEDEC
border
#C8C8C7
text
#080807
muted
#7B7B7A

Preview Lab

Preview with #40403A

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

Preview Lab → · Contrast checker → · Palette generator →

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