#403838#403838

#403838 is a dark, near-neutral grey. Relative luminance 0.042; OKLCH L 34.9% C 0.011 H 17.7°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#403838
RGBrgb(64, 56, 56)
HSLhsl(0, 7%, 24%)
HSVhsv(0, 13%, 25%)
CMYKcmyk(0%, 12.5%, 12.5%, 74.9%)
CIE-LABlab(24.33, 3.51, 1.28)
CIE-LCHlch(24.33, 3.73, 20.10°)
OKLaboklab(34.9% 0.0108 0.0034)
OKLCHoklch(34.9% 0.011 17.7)
XYZxyz(4.2423, 4.2039, 4.3286)
Luminance0.0420 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403838 #384040
analogous
#40383C #403838 #403C38
triadic
#403838 #384038 #383840
tetradic
#403838 #3C4038 #384040 #3C3840
square
#403838 #3C4038 #384040 #3C3840
split-complementary
#403838 #38403C #383C40
monochromatic
#100E0E #1F1B1B #403838 #615555 #817171

Accessibility & contrast

On white

11.41
#403838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#403838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403838
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403838#FFFFFF#000000##FFFFFF
##4038381.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393938
Deuteranopia (green-blind)
#3B3A38
Tritanopia (blue-blind)
#423738
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403838;
/* rgb */ color: rgb(64, 56, 56);
/* oklch */ color: oklch(34.9% 0.011 17.7);
Tailwind
colors: {
  custom: {
    50: '#746e6e',
    500: '#403838',
    950: '#000000',
  },
}
SCSS
$custom: #403838;
$custom-light: #746e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#403838",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 56
  },
  "hsl": {
    "h": 0,
    "s": 6.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.01129,
    "h": 17.7
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#403838
secondary
#656F6F
accent
#B0B078
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080707
muted
#7B7A7A

Preview Lab

Preview with #403838

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

Preview Lab → · Contrast checker → · Palette generator →

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