Skip to content

#2f320f

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

RGB
47, 50, 15
HSL
65°, 54%, 13%
CMYK
6, 0, 70, 80
Luminance
0.0292

Every format

HEX#2f320f
RGBrgb(47, 50, 15)
HSLhsl(65, 54%, 13%)
CMYKcmyk(6%, 0%, 70%, 80%)
LABlab(19.7 -7.3 21.3)
LCHlch(19.7 22.5 108.9)
OKLCHoklch(0.305 0.054 113.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f320f on white: 13.26:1
AA ✓ pass · AA-large · AAA
Aa
#2f320f on black: 1.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green19.6%
Blue5.9%

CMYK percentages

Cyan6.0%
Magenta0.0%
Yellow70.0%
Key (black)80.4%

Color previews

#2f320f text on a black background

contrast 1.58:1

Card sample

#2f320f text on a white background

contrast 13.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 50, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 50, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f320f;
background: linear-gradient(135deg, #2f320f, #18320F);

Monochromatic scale

Palettes built from #2f320f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f320f in the Color Lab