Skip to content

#2c4100

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

RGB
44, 65, 0
HSL
79°, 100%, 13%
CMYK
32, 0, 100, 75
Luminance
0.0432

Every format

HEX#2c4100
RGBrgb(44, 65, 0)
HSLhsl(79, 100%, 13%)
CMYKcmyk(32%, 0%, 100%, 75%)
LABlab(24.7 -18.6 32.9)
LCHlch(24.7 37.8 119.6)
OKLCHoklch(0.344 0.089 127.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c4100 on white: 11.27:1
AA ✓ pass · AA-large · AAA
Aa
#2c4100 on black: 1.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green25.5%
Blue0.0%

CMYK percentages

Cyan32.3%
Magenta0.0%
Yellow100.0%
Key (black)74.5%

Color previews

#2c4100 text on a black background

contrast 1.86:1

Card sample

#2c4100 text on a white background

contrast 11.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c4100

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c4100 in the Color Lab