#404642#404642

#404642 is a dark, near-neutral grey. Relative luminance 0.059; OKLCH L 38.7% C 0.010 H 156.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#404642
RGBrgb(64, 70, 66)
HSLhsl(140, 4%, 26%)
HSVhsv(140, 9%, 27%)
CMYKcmyk(8.6%, 0%, 5.7%, 72.5%)
CIE-LABlab(29.07, -3.38, 1.56)
CIE-LCHlch(29.07, 3.72, 155.12°)
OKLaboklab(38.73% -0.0095 0.0041)
OKLCHoklch(38.73% 0.01 156.7)
XYZxyz(5.2877, 5.8636, 6.0064)
Luminance0.0586 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404642 #464044
analogous
#414640 #404642 #404645
triadic
#404642 #424046 #464240
tetradic
#404642 #404146 #464044 #464540
square
#404642 #404146 #464044 #464540
split-complementary
#404642 #454046 #464041
monochromatic
#0F100F #232624 #404642 #5D6660 #7B867E

Accessibility & contrast

On white

9.66
#404642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#404642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404642
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404642#FFFFFF#000000##FFFFFF
##4046421.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464542
Deuteranopia (green-blind)
#454442
Tritanopia (blue-blind)
#3F4645
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #404642;
/* rgb */ color: rgb(64, 70, 66);
/* oklch */ color: oklch(38.7% 0.010 156.7);
Tailwind
colors: {
  custom: {
    50: '#747976',
    500: '#404642',
    950: '#000000',
  },
}
SCSS
$custom: #404642;
$custom-light: #747976;
$custom-dark: #000000;
JSON
{
  "hex": "#404642",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 66
  },
  "hsl": {
    "h": 140,
    "s": 4.478,
    "l": 26.275
  },
  "oklch": {
    "l": 0.38725,
    "c": 0.01033,
    "h": 156.7
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#404642
secondary
#746D72
accent
#7A9CAE
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080908
muted
#7B7B7B

Preview Lab

Preview with #404642

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

Preview Lab → · Contrast checker → · Palette generator →

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