Skip to content

#2f2f1c

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

RGB
47, 47, 28
HSL
60°, 25%, 15%
CMYK
0, 0, 40, 82
Luminance
0.0272

Every format

HEX#2f2f1c
RGBrgb(47, 47, 28)
HSLhsl(60, 25%, 15%)
CMYKcmyk(0%, 0%, 40%, 82%)
LABlab(18.9 -3.7 12.2)
LCHlch(18.9 12.8 107.0)
OKLCHoklch(0.299 0.032 108.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2f1c on white: 13.60:1
AA ✓ pass · AA-large · AAA
Aa
#2f2f1c on black: 1.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green18.4%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow40.4%
Key (black)81.6%

Color previews

#2f2f1c text on a black background

contrast 1.54:1

Card sample

#2f2f1c text on a white background

contrast 13.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2f1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2f1c in the Color Lab