Skip to content

#2f413c

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

RGB
47, 65, 60
HSL
163°, 16%, 22%
CMYK
28, 0, 8, 75
Luminance
0.0471

Every format

HEX#2f413c
RGBrgb(47, 65, 60)
HSLhsl(163, 16%, 22%)
CMYKcmyk(28%, 0%, 8%, 75%)
LABlab(25.9 -8.4 0.7)
LCHlch(25.9 8.5 175.2)
OKLCHoklch(0.358 0.025 175.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f413c on white: 10.81:1
AA ✓ pass · AA-large · AAA
Aa
#2f413c on black: 1.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green25.5%
Blue23.5%

CMYK percentages

Cyan27.7%
Magenta0.0%
Yellow7.7%
Key (black)74.5%

Color previews

#2f413c text on a black background

contrast 1.94:1

Card sample

#2f413c text on a white background

contrast 10.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f413c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f413c in the Color Lab