Skip to content

#304515

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

RGB
48, 69, 21
HSL
86°, 53%, 18%
CMYK
30, 0, 70, 73
Luminance
0.0494

Every format

HEX#304515
RGBrgb(48, 69, 21)
HSLhsl(86, 53%, 18%)
CMYKcmyk(30%, 0%, 70%, 73%)
LABlab(26.6 -17.4 25.7)
LCHlch(26.6 31.0 124.1)
OKLCHoklch(0.361 0.077 129.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#304515 on white: 10.56:1
AA ✓ pass · AA-large · AAA
Aa
#304515 on black: 1.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.8%
Green27.1%
Blue8.2%

CMYK percentages

Cyan30.4%
Magenta0.0%
Yellow69.6%
Key (black)72.9%

Color previews

#304515 text on a black background

contrast 1.99:1

Card sample

#304515 text on a white background

contrast 10.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(48, 69, 21, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 69, 21, 0.45);
Border & gradient
Gradient panel
border: 3px solid #304515;
background: linear-gradient(135deg, #304515, #15451A);

Monochromatic scale

Palettes built from #304515

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #304515 in the Color Lab