Skip to content

#2a5708

a deep, electric green · neutral · closest name: Dark Green

RGB
42, 87, 8
HSL
94°, 83%, 19%
CMYK
52, 0, 91, 66
Luminance
0.0733

At a glance

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

Hex
#2a5708
Hue
94°
green
Saturation
83%
electric
Lightness
19%
deep
Brightness
34%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0733
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Green
Tone
Electric
Best ink
White
8.52:1
Closest name
Dark Green
ΔE2000 5.8
Where it sits
Hue94° of 360°
Saturation83%
Lightness19%
Temperature
Warm ← → Cool52% cool

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

Every format

HEX#2a5708
RGBrgb(42, 87, 8)
HSLhsl(94, 83%, 19%)
CMYKcmyk(52%, 0%, 91%, 66%)
LABlab(32.5 -29.6 36.7)
LCHlch(32.5 47.1 128.9)
OKLCHoklch(0.409 0.115 135.8)
Decimal2774792
Display P3color(display-p3 0.165 0.341 0.031)

Copy-ready code

/* CSS */
color: #2a5708;
background-color: #2a5708;
/* Tailwind (arbitrary) */
class="text-[#2a5708] bg-[#2a5708]"
/* SCSS */
$brand: #2a5708;
/* SwiftUI */
Color(red: 0.165, green: 0.341, blue: 0.031)
/* Android */
Color.parseColor("#2a5708")
/* Flutter */
Color(0xFF2A5708)
/* Python / OpenCV (BGR) */
(8, 87, 42)

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#ffffff on #2a5708 · 8.52:1
Use #ffffffAAA at every size.
Aa
White text · 8.52:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.47:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2a5708 as text scores 8.52:1 on white and 2.47:1 on black.

Accessibility — WCAG contrast

Aa
#2a5708 on white: 8.52:1
AA ✓ pass · AA-large · AAA
Aa
#2a5708 on black: 2.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5A4F00
deuteranopia · #554B12
tritanopia · #285349

Color scale — 50 to 950

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

#F7FCF2
#EEFAE6
#DAF6C6
#C0F698
#A1F165
#82EC31
#6CE015
#5ABB11
#48950E
#376C0E
#2a5708
Base = 950Lightest = 50 · #F7FCF2Darkest = 950 · #2a5708
:root {
  --brand-50: #F7FCF2;
  --brand-100: #EEFAE6;
  --brand-200: #DAF6C6;
  --brand-300: #C0F698;
  --brand-400: #A1F165;
  --brand-500: #82EC31;
  --brand-600: #6CE015;
  --brand-700: #5ABB11;
  --brand-800: #48950E;
  --brand-900: #376C0E;
  --brand-950: #2a5708;
  --brand: #2a5708;
  --brand-ink: #ffffff;
}

Colors that work with #2a5708

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

Text on it#ffffff
White wins here
Surface#F7FAF4
Tinted page background
Border#D3EDC0
Hairlines and dividers
Muted text#6D9B4B
Captions on the surface
Accent#210659
Second voice, not a rival
Dark variant#38750B
Hover, pressed, headers
Light variant#F1FDE8
Selected rows, tints
Dark surface#1B2414
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 #2a5708

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

Works well for
  • 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
Use with care
  • Text on black or near-black surfaces
  • 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#350857
Analogous left#515708
Analogous right#08570D
Split-complement 1#0D0857
Split-complement 2#570851
Triadic 1#082A57
Triadic 2#57082A
Tetradic#085157

RGB percentages

Red16.5%
Green34.1%
Blue3.1%

CMYK percentages

Cyan51.7%
Magenta0.0%
Yellow90.8%
Key (black)65.9%

Color previews

#2a5708 text on a black background

contrast 2.47:1

Card sample

#2a5708 text on a white background

contrast 8.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 87, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 87, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a5708;
background: linear-gradient(135deg, #2a5708, #08571B);

Monochromatic scale

Palettes built from #2a5708

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.

#2a5708 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.

#2a5708, answered

What color is #2a5708?

#2a5708 is a deep electric green, closest to Dark Green (ΔE2000 5.8). It sits at 94° on the hue wheel with 83% saturation and 19% lightness, which reads as neutral.

What is the RGB value of #2a5708?

rgb(42, 87, 8) — 42 red, 87 green and 8 blue out of 255, or 16.5% / 34.1% / 3.1% by channel.

Is #2a5708 a light or a dark color?

It is a dark color. Relative luminance is 0.0733 and perceived brightness is 28%, so white text on it reaches 8.52:1.

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

White. It scores 8.52:1 against #2a5708, versus 2.47:1 for black — AAA at any size.

What is the complementary color of #2a5708?

#350857 sits directly opposite on the wheel. Softer options are the split-complements #0D0857 and #570851, which give the same contrast with far less vibration.

What colors go well with #2a5708?

For interface work: #F7FAF4 as the surface, #D3EDC0 for borders, #6D9B4B for secondary text, #210659 as an accent and #38750B for hover and pressed states. For a palette, the analogous pair #515708 and #08570D stays calm, while #350857 is the loudest partner.

What is #2a5708 in CMYK for printing?

cmyk(52%, 0%, 91%, 66%). 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 #2a5708 warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #475708; nudged cooler, #0C5807.

Work with #2a5708 in the Color Lab