Skip to content

#2ba015

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

RGB
43, 160, 21
HSL
111°, 77%, 36%
CMYK
73, 0, 87, 37
Luminance
0.2571

At a glance

Every number on this page in one read: what #2ba015 is made of, how bright it looks, and which way it leans.

Hex
#2ba015
Hue
111°
green
Saturation
77%
electric
Lightness
36%
dark
Brightness
63%
HSV value
Perceived
49%
weighted brightness
Luminance
0.2571
WCAG relative
Temperature
Cool
59/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.14:1
Closest name
Forest Green
ΔE2000 7.6
Where it sits
Hue111° of 360°
Saturation77%
Lightness36%
Temperature
Warm ← → Cool59% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2ba015
RGBrgb(43, 160, 21)
HSLhsl(111, 77%, 36%)
CMYKcmyk(73%, 0%, 87%, 37%)
LABlab(57.8 -55.8 55.8)
LCHlch(57.8 78.9 135.0)
OKLCHoklch(0.618 0.196 141.2)
Decimal2859029
Display P3color(display-p3 0.169 0.627 0.082)

Copy-ready code

/* CSS */
color: #2ba015;
background-color: #2ba015;
/* Tailwind (arbitrary) */
class="text-[#2ba015] bg-[#2ba015]"
/* SCSS */
$brand: #2ba015;
/* SwiftUI */
Color(red: 0.169, green: 0.627, blue: 0.082)
/* Android */
Color.parseColor("#2ba015")
/* Flutter */
Color(0xFF2BA015)
/* Python / OpenCV (BGR) */
(21, 160, 43)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #2ba015 · 6.14:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.42:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.14:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #2ba015 as text scores 3.42:1 on white and 6.14:1 on black.

Accessibility — WCAG contrast

Aa
#2ba015 on white: 3.42:1
AA ✗ fail · AA-large · AAA
Aa
#2ba015 on black: 6.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A49000
deuteranopia · #978729
tritanopia · #079B88

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2ba015 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4FCF3
#E9F9E7
#CFF4C7
#A9F29C
#7FEB6A
#54E539
#3AD81C
#30B418
#2ba015
#206812
#14410B
Base = 800Lightest = 50 · #F4FCF3Darkest = 950 · #14410B
:root {
  --brand-50: #F4FCF3;
  --brand-100: #E9F9E7;
  --brand-200: #CFF4C7;
  --brand-300: #A9F29C;
  --brand-400: #7FEB6A;
  --brand-500: #54E539;
  --brand-600: #3AD81C;
  --brand-700: #30B418;
  --brand-800: #2ba015;
  --brand-900: #206812;
  --brand-950: #14410B;
  --brand: #2ba015;
  --brand-ink: #000000;
}

Colors that work with #2ba015

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F5FAF4
Tinted page background
Border#C7EDC0
Hairlines and dividers
Muted text#579B4B
Captions on the surface
Accent#6811A4
Second voice, not a rival
Dark variant#1E710F
Hover, pressed, headers
Light variant#ECFCE8
Selected rows, tints
Dark surface#162414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2ba015

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#8A15A0
Analogous left#71A015
Analogous right#15A045
Split-complement 1#4515A0
Split-complement 2#A01571
Triadic 1#152BA0
Triadic 2#A0152B
Tetradic#1571A0

RGB percentages

Red16.9%
Green62.7%
Blue8.2%

CMYK percentages

Cyan73.1%
Magenta0.0%
Yellow86.9%
Key (black)37.3%

Color previews

#2ba015 text on a black background

contrast 6.14:1

Card sample

#2ba015 text on a white background

contrast 3.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ba015

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2ba015 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2ba015, answered

What color is #2ba015?

#2ba015 is a dark electric green, closest to Forest Green (ΔE2000 7.6). It sits at 111° on the hue wheel with 77% saturation and 36% lightness, which reads as cool.

What is the RGB value of #2ba015?

rgb(43, 160, 21) — 43 red, 160 green and 21 blue out of 255, or 16.9% / 62.7% / 8.2% by channel.

Is #2ba015 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2571 and perceived brightness is 49%, so black text on it reaches 6.14:1.

Should I use black or white text on #2ba015?

Black. It scores 6.14:1 against #2ba015, versus 3.42:1 for white — AA at any size.

What is the complementary color of #2ba015?

#8A15A0 sits directly opposite on the wheel. Softer options are the split-complements #4515A0 and #A01571, which give the same contrast with far less vibration.

What colors go well with #2ba015?

For interface work: #F5FAF4 as the surface, #C7EDC0 for borders, #579B4B for secondary text, #6811A4 as an accent and #1E710F for hover and pressed states. For a palette, the analogous pair #71A015 and #15A045 stays calm, while #8A15A0 is the loudest partner.

What is #2ba015 in CMYK for printing?

cmyk(73%, 0%, 87%, 37%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2ba015 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5EA015; nudged cooler, #13A231.

Work with #2ba015 in the Color Lab