Skip to content

#2a6c21

a dark, vivid green · cool · closest name: Dark Green

RGB
42, 108, 33
HSL
113°, 53%, 28%
CMYK
61, 0, 69, 58
Luminance
0.1133

At a glance

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

Hex
#2a6c21
Hue
113°
green
Saturation
53%
vivid
Lightness
28%
dark
Brightness
42%
HSV value
Perceived
34%
weighted brightness
Luminance
0.1133
WCAG relative
Temperature
Cool
60/100 cool
Color family
Green
Tone
Vivid
Best ink
White
6.43:1
Closest name
Dark Green
ΔE2000 4.4
Where it sits
Hue113° of 360°
Saturation53%
Lightness28%
Temperature
Warm ← → Cool60% 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#2a6c21
RGBrgb(42, 108, 33)
HSLhsl(113, 53%, 28%)
CMYKcmyk(61%, 0%, 69%, 58%)
LABlab(40.1 -36.5 34.5)
LCHlch(40.1 50.3 136.6)
OKLCHoklch(0.472 0.128 141.4)
Decimal2780193
Display P3color(display-p3 0.165 0.424 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2a6c21 on white: 6.43:1
AA ✓ pass · AA-large · AAA
Aa
#2a6c21 on black: 3.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #6F6217
deuteranopia · #665C28
tritanopia · #21695D

Color scale — 50 to 950

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

#F5FBF4
#EBF6E9
#D2EDCE
#B0E5A9
#89D87E
#61CA53
#49BC39
#3D9C30
#317D26
#2a6c21
#183914
Base = 900Lightest = 50 · #F5FBF4Darkest = 950 · #183914
:root {
  --brand-50: #F5FBF4;
  --brand-100: #EBF6E9;
  --brand-200: #D2EDCE;
  --brand-300: #B0E5A9;
  --brand-400: #89D87E;
  --brand-500: #61CA53;
  --brand-600: #49BC39;
  --brand-700: #3D9C30;
  --brand-800: #317D26;
  --brand-900: #2a6c21;
  --brand-950: #183914;
  --brand: #2a6c21;
  --brand-ink: #ffffff;
}

Colors that work with #2a6c21

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#F5FAF4
Tinted page background
Border#C6ECC0
Hairlines and dividers
Muted text#549B4B
Captions on the surface
Accent#511E6F
Second voice, not a rival
Dark variant#26621E
Hover, pressed, headers
Light variant#EDF9EB
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 #2a6c21

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
  • 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#63216C
Analogous left#4F6C21
Analogous right#216C3D
Split-complement 1#3D216C
Split-complement 2#6C214F
Triadic 1#212A6C
Triadic 2#6C212A
Tetradic#214F6C

RGB percentages

Red16.5%
Green42.4%
Blue12.9%

CMYK percentages

Cyan61.1%
Magenta0.0%
Yellow69.4%
Key (black)57.6%

Color previews

#2a6c21 text on a black background

contrast 3.27:1

Card sample

#2a6c21 text on a white background

contrast 6.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2a6c21

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.

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

#2a6c21, answered

What color is #2a6c21?

#2a6c21 is a dark vivid green, closest to Dark Green (ΔE2000 4.4). It sits at 113° on the hue wheel with 53% saturation and 28% lightness, which reads as cool.

What is the RGB value of #2a6c21?

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

Is #2a6c21 a light or a dark color?

It is a dark color. Relative luminance is 0.1133 and perceived brightness is 34%, so white text on it reaches 6.43:1.

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

White. It scores 6.43:1 against #2a6c21, versus 3.27:1 for black — AA at any size.

What is the complementary color of #2a6c21?

#63216C sits directly opposite on the wheel. Softer options are the split-complements #3D216C and #6C214F, which give the same contrast with far less vibration.

What colors go well with #2a6c21?

For interface work: #F5FAF4 as the surface, #C6ECC0 for borders, #549B4B for secondary text, #511E6F as an accent and #26621E for hover and pressed states. For a palette, the analogous pair #4F6C21 and #216C3D stays calm, while #63216C is the loudest partner.

What is #2a6c21 in CMYK for printing?

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

Is #2a6c21 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #456C21; nudged cooler, #206D33.

Work with #2a6c21 in the Color Lab