Skip to content

#2ba40f

a dark, electric green · cool · closest name: green

RGB
43, 164, 15
HSL
109°, 83%, 35%
CMYK
74, 0, 91, 36
Luminance
0.2710

Every format

HEX#2ba40f
RGBrgb(43, 164, 15)
HSLhsl(109, 83%, 35%)
CMYKcmyk(74%, 0%, 91%, 36%)
LABlab(59.1 -57.3 58.2)
LCHlch(59.1 81.6 134.6)
OKLCHoklch(0.628 0.202 141.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ba40f on white: 3.27:1
AA ✗ fail · AA-large · AAA
Aa
#2ba40f on black: 6.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.9%
Green64.3%
Blue5.9%

CMYK percentages

Cyan73.8%
Magenta0.0%
Yellow90.9%
Key (black)35.7%

Color previews

#2ba40f text on a black background

contrast 6.42:1

Card sample

#2ba40f text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 164, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 164, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2ba40f;
background: linear-gradient(135deg, #2ba40f, #0FA456);

Monochromatic scale

Palettes built from #2ba40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ba40f in the Color Lab