#2f7204
a deep, electric green · neutral · closest name: Green
At a glance
Every number on this page in one read: what #2f7204 is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #2f7204 |
| RGB | rgb(47, 114, 4) |
| HSL | hsl(97, 93%, 23%) |
| CMYK | cmyk(59%, 0%, 97%, 55%) |
| LAB | lab(42.2 -39.3 46.1) |
| LCH | lch(42.2 60.6 130.4) |
| OKLCH | oklch(0.489 0.148 137.6) |
| Decimal | 3109380 |
| Display P3 | color(display-p3 0.184 0.447 0.016) |
Copy-ready code
/* CSS */
color: #2f7204;
background-color: #2f7204;
/* Tailwind (arbitrary) */
class="text-[#2f7204] bg-[#2f7204]"
/* SCSS */
$brand: #2f7204;
/* SwiftUI */
Color(red: 0.184, green: 0.447, blue: 0.016)
/* Android */
Color.parseColor("#2f7204")
/* Flutter */
Color(0xFF2F7204)
/* Python / OpenCV (BGR) */
(4, 114, 47)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #2f7204 is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F6FDF2;
--brand-100: #EDFBE4;
--brand-200: #D8F9C2;
--brand-300: #BCFB93;
--brand-400: #9AF95C;
--brand-500: #78F726;
--brand-600: #62EC08;
--brand-700: #51C507;
--brand-800: #419E06;
--brand-900: #2f7204;
--brand-950: #1F4705;
--brand: #2f7204;
--brand-ink: #ffffff;
}Colors that work with #2f7204
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #2f7204
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠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 | #470472 | Directly opposite — maximum tension | |
| Analogous left | #667204 | Neighbour, quieter | |
| Analogous right | #047210 | Neighbour, quieter | |
| Split-complement 1 | #100472 | Contrast without the clash | |
| Split-complement 2 | #720466 | Contrast without the clash | |
| Triadic 1 | #042F72 | Even thirds — balanced and loud | |
| Triadic 2 | #72042F | Even thirds — balanced and loud | |
| Tetradic | #046672 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#2f7204 text on a black background
contrast 3.53:1
#2f7204 text on a white background
contrast 5.95:1
CSS3 live lab
The quick brown fox
color: #2f7204;
background-color: #2f7204;
Glowing headline
text-shadow: 2px 2px 8px #2f7204;
Soft neon halo
text-shadow: 0 0 14px rgba(47, 114, 4, 0.45);
box-shadow: 0 12px 32px -8px rgba(47, 114, 4, 0.45);
border: 3px solid #2f7204; background: linear-gradient(135deg, #2f7204, #047222);
Monochromatic scale
Palettes built from #2f7204
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.
Closest color with a full write-up: Green (#008000) — ΔE2000 5.5 away, with its history, psychology and brand usage.
#2f7204 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#2f7204, answered
What color is #2f7204?
#2f7204 is a deep electric green, closest to Green (ΔE2000 5.5). It sits at 97° on the hue wheel with 93% saturation and 23% lightness, which reads as neutral.
What is the RGB value of #2f7204?
rgb(47, 114, 4) — 47 red, 114 green and 4 blue out of 255, or 18.4% / 44.7% / 1.6% by channel.
Is #2f7204 a light or a dark color?
It is a dark color. Relative luminance is 0.1265 and perceived brightness is 36%, so white text on it reaches 5.95:1.
Should I use black or white text on #2f7204?
White. It scores 5.95:1 against #2f7204, versus 3.53:1 for black — AA at any size.
What is the complementary color of #2f7204?
#470472 sits directly opposite on the wheel. Softer options are the split-complements #100472 and #720466, which give the same contrast with far less vibration.
What colors go well with #2f7204?
For interface work: #F7FAF4 as the surface, #D1EDC0 for borders, #6A9B4B for secondary text, #2B0274 as an accent and #337B04 for hover and pressed states. For a palette, the analogous pair #667204 and #047210 stays calm, while #470472 is the loudest partner.
What is #2f7204 in CMYK for printing?
cmyk(59%, 0%, 97%, 55%). 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 #2f7204 warm or cool?
Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #577204; nudged cooler, #067303.