Skip to content

#2a4c21

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

RGB
42, 76, 33
HSL
107°, 39%, 21%
CMYK
45, 0, 57, 70
Luminance
0.0577

At a glance

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

Hex
#2a4c21
Hue
107°
green
Saturation
39%
soft
Lightness
21%
deep
Brightness
30%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0577
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Soft
Best ink
White
9.75:1
Closest name
Dark Green
ΔE2000 11.3
Where it sits
Hue107° of 360°
Saturation39%
Lightness21%
Temperature
Warm ← → Cool57% 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#2a4c21
RGBrgb(42, 76, 33)
HSLhsl(107, 39%, 21%)
CMYKcmyk(45%, 0%, 57%, 70%)
LABlab(28.8 -22.0 21.6)
LCHlch(28.8 30.9 135.6)
OKLCHoklch(0.379 0.080 139.4)
Decimal2772001
Display P3color(display-p3 0.165 0.298 0.129)

Copy-ready code

/* CSS */
color: #2a4c21;
background-color: #2a4c21;
/* Tailwind (arbitrary) */
class="text-[#2a4c21] bg-[#2a4c21]"
/* SCSS */
$brand: #2a4c21;
/* SwiftUI */
Color(red: 0.165, green: 0.298, blue: 0.129)
/* Android */
Color.parseColor("#2a4c21")
/* Flutter */
Color(0xFF2A4C21)
/* Python / OpenCV (BGR) */
(33, 76, 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 #2a4c21 · 9.75:1
Use #ffffffAAA at every size.
Aa
White text · 9.75:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.15:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2a4c21 as text scores 9.75:1 on white and 2.15:1 on black.

Accessibility — WCAG contrast

Aa
#2a4c21 on white: 9.75:1
AA ✓ pass · AA-large · AAA
Aa
#2a4c21 on black: 2.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4E461D
deuteranopia · #494324
tritanopia · #284A42

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2a4c21 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.

#F6FAF5
#EDF4EB
#D7E9D2
#BADDB1
#98CC8A
#75BB63
#5EAB4A
#4F8E3E
#3F7231
#2a4c21
#1E3418
Base = 900Lightest = 50 · #F6FAF5Darkest = 950 · #1E3418
:root {
  --brand-50: #F6FAF5;
  --brand-100: #EDF4EB;
  --brand-200: #D7E9D2;
  --brand-300: #BADDB1;
  --brand-400: #98CC8A;
  --brand-500: #75BB63;
  --brand-600: #5EAB4A;
  --brand-700: #4F8E3E;
  --brand-800: #3F7231;
  --brand-900: #2a4c21;
  --brand-950: #1E3418;
  --brand: #2a4c21;
  --brand-ink: #ffffff;
}

Colors that work with #2a4c21

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#F6FAF4
Tinted page background
Border#CDE6C6
Hairlines and dividers
Muted text#5B9B4B
Captions on the surface
Accent#381F4E
Second voice, not a rival
Dark variant#315927
Hover, pressed, headers
Light variant#EFF7ED
Selected rows, tints
Dark surface#172414
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 #2a4c21

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#43214C
Analogous left#404C21
Analogous right#214C2E
Split-complement 1#2E214C
Split-complement 2#4C2140
Triadic 1#212A4C
Triadic 2#4C212A
Tetradic#21404C

RGB percentages

Red16.5%
Green29.8%
Blue12.9%

CMYK percentages

Cyan44.7%
Magenta0.0%
Yellow56.6%
Key (black)70.2%

Color previews

#2a4c21 text on a black background

contrast 2.15:1

Card sample

#2a4c21 text on a white background

contrast 9.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 76, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 76, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a4c21;
background: linear-gradient(135deg, #2a4c21, #214C35);

Monochromatic scale

Palettes built from #2a4c21

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.

#2a4c21 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

Converts to four-color process without much drama. Proof it anyway.

#2a4c21, answered

What color is #2a4c21?

#2a4c21 is a deep soft green, closest to Dark Green (ΔE2000 11.3). It sits at 107° on the hue wheel with 39% saturation and 21% lightness, which reads as neutral.

What is the RGB value of #2a4c21?

rgb(42, 76, 33) — 42 red, 76 green and 33 blue out of 255, or 16.5% / 29.8% / 12.9% by channel.

Is #2a4c21 a light or a dark color?

It is a dark color. Relative luminance is 0.0577 and perceived brightness is 25%, so white text on it reaches 9.75:1.

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

White. It scores 9.75:1 against #2a4c21, versus 2.15:1 for black — AAA at any size.

What is the complementary color of #2a4c21?

#43214C sits directly opposite on the wheel. Softer options are the split-complements #2E214C and #4C2140, which give the same contrast with far less vibration.

What colors go well with #2a4c21?

For interface work: #F6FAF4 as the surface, #CDE6C6 for borders, #5B9B4B for secondary text, #381F4E as an accent and #315927 for hover and pressed states. For a palette, the analogous pair #404C21 and #214C2E stays calm, while #43214C is the loudest partner.

What is #2a4c21 in CMYK for printing?

cmyk(45%, 0%, 57%, 70%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2a4c21 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3A4C21; nudged cooler, #204D27.

Work with #2a4c21 in the Color Lab