Skip to content

#2a2f39

a deep, soft blue · cool · closest name: darkslategray

RGB
42, 47, 57
HSL
220°, 15%, 19%
CMYK
26, 18, 0, 78
Luminance
0.0282

Every format

HEX#2a2f39
RGBrgb(42, 47, 57)
HSLhsl(220, 15%, 19%)
CMYKcmyk(26%, 18%, 0%, 78%)
LABlab(19.3 0.5 -7.1)
LCHlch(19.3 7.1 274.4)
OKLCHoklch(0.305 0.019 264.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2a2f39 on white: 13.43:1
AA ✓ pass · AA-large · AAA
Aa
#2a2f39 on black: 1.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green18.4%
Blue22.4%

CMYK percentages

Cyan26.3%
Magenta17.5%
Yellow0.0%
Key (black)77.6%

Color previews

#2a2f39 text on a black background

contrast 1.56:1

Card sample

#2a2f39 text on a white background

contrast 13.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 47, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 47, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a2f39;
background: linear-gradient(135deg, #2a2f39, #2F2A39);

Monochromatic scale

Palettes built from #2a2f39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2a2f39 in the Color Lab