Skip to content

#004021

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

RGB
0, 64, 33
HSL
151°, 100%, 13%
CMYK
100, 0, 48, 75
Luminance
0.0378

Every format

HEX#004021
RGBrgb(0, 64, 33)
HSLhsl(151, 100%, 13%)
CMYKcmyk(100%, 0%, 48%, 75%)
LABlab(22.9 -27.3 13.8)
LCHlch(22.9 30.6 153.1)
OKLCHoklch(0.326 0.081 154.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#004021 on white: 11.96:1
AA ✓ pass · AA-large · AAA
Aa
#004021 on black: 1.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green25.1%
Blue12.9%

CMYK percentages

Cyan100.0%
Magenta0.0%
Yellow48.4%
Key (black)74.9%

Color previews

#004021 text on a black background

contrast 1.76:1

Card sample

#004021 text on a white background

contrast 11.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(0, 64, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 64, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004021;
background: linear-gradient(135deg, #004021, #003440);

Monochromatic scale

Palettes built from #004021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #004021 in the Color Lab