#40383C#40383C

#40383C is a dark, near-neutral grey. Relative luminance 0.042; OKLCH L 35.0% C 0.013 H 346.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#40383C
RGBrgb(64, 56, 60)
HSLhsl(330, 7%, 24%)
HSVhsv(330, 13%, 25%)
CMYKcmyk(0%, 12.5%, 6.2%, 74.9%)
CIE-LABlab(24.46, 4.35, -1.20)
CIE-LCHlch(24.46, 4.51, 344.57°)
OKLaboklab(35.05% 0.0126 -0.0031)
OKLCHoklch(35.05% 0.013 346.1)
XYZxyz(4.3440, 4.2447, 4.8645)
Luminance0.0425 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40383C #38403C
analogous
#403840 #40383C #403838
triadic
#40383C #3C4038 #383C40
tetradic
#40383C #404038 #38403C #383840
square
#40383C #404038 #38403C #383840
split-complementary
#40383C #384038 #384040
monochromatic
#100E0F #1F1B1D #40383C #61555B #817179

Accessibility & contrast

On white

11.36
#40383C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#40383C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40383C
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40383C#FFFFFF#000000##FFFFFF
##40383C1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38393C
Deuteranopia (green-blind)
#3A3B3C
Tritanopia (blue-blind)
#413839
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #40383c;
/* rgb */ color: rgb(64, 56, 60);
/* oklch */ color: oklch(35.0% 0.013 346.1);
Tailwind
colors: {
  custom: {
    50: '#746e71',
    500: '#40383c',
    950: '#000000',
  },
}
SCSS
$custom: #40383c;
$custom-light: #746e71;
$custom-dark: #000000;
JSON
{
  "hex": "#40383c",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 60
  },
  "hsl": {
    "h": 330,
    "s": 6.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35048,
    "c": 0.01301,
    "h": 346.1
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#40383C
secondary
#656F6A
accent
#B09478
background
#F7F6F6
surface
#EDEBEC
border
#C8C6C7
text
#080707
muted
#7B7A7A

Preview Lab

Preview with #40383C

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

Preview Lab → · Contrast checker → · Palette generator →

#40383C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva