Skip to content

#40393d

a deep, muted gray · warm · closest name: darkslategray

RGB
64, 57, 61
HSL
326°, 6%, 24%
CMYK
0, 11, 5, 75
Luminance
0.0435

Every format

HEX#40393d
RGBrgb(64, 57, 61)
HSLhsl(326, 6%, 24%)
CMYKcmyk(0%, 11%, 5%, 75%)
LABlab(24.8 3.9 -1.4)
LCHlch(24.8 4.1 340.7)
OKLCHoklch(0.353 0.012 342.4)

Copy-ready code

/* CSS */
color: #40393d;
background-color: #40393d;
/* Tailwind (arbitrary) */
class="text-[#40393d] bg-[#40393d]"
/* SCSS */
$brand: #40393d;
/* SwiftUI */
Color(red: 0.251, green: 0.224, blue: 0.239)
/* Android */
Color.parseColor("#40393d")

Accessibility — WCAG contrast

Aa
#40393d on white: 11.23:1
AA ✓ pass · AA-large · AAA
Aa
#40393d on black: 1.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green22.4%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta10.9%
Yellow4.7%
Key (black)74.9%

Color previews

#40393d text on a black background

contrast 1.87:1

Card sample

#40393d text on a white background

contrast 11.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40393d;
Background color
Panel with #40393d background
background-color: #40393d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #40393d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 57, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 57, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40393d;
background: linear-gradient(135deg, #40393d, #403A39);

Monochromatic scale

Palettes built from #40393d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40393d in the Color Lab