#404342#404342

#404342 is a dark, near-neutral grey. Relative luminance 0.055; OKLCH L 38.0% C 0.004 H 174.3°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#404342
RGBrgb(64, 67, 66)
HSLhsl(160, 2%, 26%)
HSVhsv(160, 4%, 26%)
CMYKcmyk(4.5%, 0%, 1.5%, 73.7%)
CIE-LABlab(28.11, -1.47, 0.17)
CIE-LCHlch(28.11, 1.48, 173.34°)
OKLaboklab(37.97% -0.0043 0.0004)
OKLCHoklch(37.97% 0.004 174.3)
XYZxyz(5.1047, 5.4976, 5.9454)
Luminance0.0550 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404342 #434041
analogous
#404340 #404342 #404243
triadic
#404342 #424043 #434240
tetradic
#404342 #404043 #434041 #424340
square
#404342 #404043 #434041 #424340
split-complementary
#404342 #434042 #434040
monochromatic
#0F100F #222423 #404342 #5E6261 #7C8280

Accessibility & contrast

On white

10.00
#404342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#404342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404342
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404342#FFFFFF#000000##FFFFFF
##4043421.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#434342
Deuteranopia (green-blind)
#424242
Tritanopia (blue-blind)
#3F4343
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #404342;
/* rgb */ color: rgb(64, 67, 66);
/* oklch */ color: oklch(38.0% 0.004 174.3);
Tailwind
colors: {
  custom: {
    50: '#747776',
    500: '#404342',
    950: '#000000',
  },
}
SCSS
$custom: #404342;
$custom-light: #747776;
$custom-dark: #000000;
JSON
{
  "hex": "#404342",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 66
  },
  "hsl": {
    "h": 160,
    "s": 2.29,
    "l": 25.686
  },
  "oklch": {
    "l": 0.37969,
    "c": 0.00433,
    "h": 174.3
  },
  "luminance": 0.05498
}

Semantic roles & 50–950 ramp

primary
#404342
secondary
#716E6F
accent
#7C8CAC
background
#F7F7F7
surface
#EDEDED
border
#C8C8C8
text
#080808
muted
#7B7B7B

Preview Lab

Preview with #404342

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

Preview Lab → · Contrast checker → · Palette generator →

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