Skip to content

#2f4100

a deep, electric green · cool · closest name: olivedrab

RGB
47, 65, 0
HSL
77°, 100%, 13%
CMYK
28, 0, 100, 75
Luminance
0.0438

Every format

HEX#2f4100
RGBrgb(47, 65, 0)
HSLhsl(77, 100%, 13%)
CMYKcmyk(28%, 0%, 100%, 75%)
LABlab(24.9 -17.2 33.1)
LCHlch(24.9 37.3 117.4)
OKLCHoklch(0.347 0.087 125.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4100 on white: 11.19:1
AA ✓ pass · AA-large · AAA
Aa
#2f4100 on black: 1.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green25.5%
Blue0.0%

CMYK percentages

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

Color previews

#2f4100 text on a black background

contrast 1.88:1

Card sample

#2f4100 text on a white background

contrast 11.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4100

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4100 in the Color Lab