#404040#404040

#404040 is a dark, near-neutral grey. Relative luminance 0.051; OKLCH L 37.1% C 0.000 H 0.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#404040
RGBrgb(64, 64, 64)
HSLhsl(0, 0%, 25%)
HSVhsv(0, 0%, 25%)
CMYKcmyk(0%, 0%, 0%, 74.9%)
CIE-LABlab(27.09, 0.00, -0.00)
CIE-LCHlch(27.09, 0.00, 323.13°)
OKLaboklab(37.15% 0 0)
OKLCHoklch(37.15% 0 0)
XYZxyz(4.8730, 5.1269, 5.5824)
Luminance0.0513 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404040 #404040
analogous
#404040 #404040 #404040
triadic
#404040 #404040 #404040
tetradic
#404040 #404040 #404040 #404040
square
#404040 #404040 #404040 #404040
split-complementary
#404040 #404040 #404040
monochromatic
#0F0F0F #212121 #404040 #5F5F5F #7D7D7D

Accessibility & contrast

On white

10.37
#404040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#404040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404040
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404040#FFFFFF#000000##FFFFFF
##4040401.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404040;
/* rgb */ color: rgb(64, 64, 64);
/* oklch */ color: oklch(37.1% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#747474',
    500: '#404040',
    950: '#000000',
  },
}
SCSS
$custom: #404040;
$custom-light: #747474;
$custom-dark: #000000;
JSON
{
  "hex": "#404040",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 64
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 25.098
  },
  "oklch": {
    "l": 0.37149,
    "c": 0,
    "h": 0
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#404040
secondary
#6E6E6E
accent
#A9A97E
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080808
muted
#7B7B7B

Preview Lab

Preview with #404040

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

Preview Lab → · Contrast checker → · Palette generator →

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