Skip to content

#2c2f3a

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

RGB
44, 47, 58
HSL
227°, 14%, 20%
CMYK
24, 19, 0, 77
Luminance
0.0287

Every format

HEX#2c2f3a
RGBrgb(44, 47, 58)
HSLhsl(227, 14%, 20%)
CMYKcmyk(24%, 19%, 0%, 77%)
LABlab(19.5 1.6 -7.4)
LCHlch(19.5 7.6 282.3)
OKLCHoklch(0.307 0.020 273.2)

Copy-ready code

/* CSS */
color: #2c2f3a;
background-color: #2c2f3a;
/* Tailwind (arbitrary) */
class="text-[#2c2f3a] bg-[#2c2f3a]"
/* SCSS */
$brand: #2c2f3a;
/* SwiftUI */
Color(red: 0.173, green: 0.184, blue: 0.227)
/* Android */
Color.parseColor("#2c2f3a")

Accessibility — WCAG contrast

Aa
#2c2f3a on white: 13.34:1
AA ✓ pass · AA-large · AAA
Aa
#2c2f3a on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green18.4%
Blue22.7%

CMYK percentages

Cyan24.1%
Magenta19.0%
Yellow0.0%
Key (black)77.3%

Color previews

#2c2f3a text on a black background

contrast 1.57:1

Card sample

#2c2f3a text on a white background

contrast 13.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c2f3a;
Background color
Panel with #2c2f3a background
background-color: #2c2f3a;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 47, 58, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 47, 58, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c2f3a;
background: linear-gradient(135deg, #2c2f3a, #322C3A);

Monochromatic scale

Palettes built from #2c2f3a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c2f3a in the Color Lab