Skip to content

#3a5a21

a deep, vivid green · neutral · closest name: Dark Olive Green

RGB
58, 90, 33
HSL
94°, 46%, 24%
CMYK
36, 0, 63, 65
Luminance
0.0832

At a glance

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

Hex
#3a5a21
Hue
94°
green
Saturation
46%
vivid
Lightness
24%
deep
Brightness
35%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0832
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Green
Tone
Vivid
Best ink
White
7.88:1
Closest name
Dark Olive Green
ΔE2000 7.1
Where it sits
Hue94° of 360°
Saturation46%
Lightness24%
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#3a5a21
RGBrgb(58, 90, 33)
HSLhsl(94, 46%, 24%)
CMYKcmyk(36%, 0%, 63%, 65%)
LABlab(34.6 -22.9 28.7)
LCHlch(34.6 36.7 128.6)
OKLCHoklch(0.429 0.092 133.5)
Decimal3824161
Display P3color(display-p3 0.227 0.353 0.129)

Copy-ready code

/* CSS */
color: #3a5a21;
background-color: #3a5a21;
/* Tailwind (arbitrary) */
class="text-[#3a5a21] bg-[#3a5a21]"
/* SCSS */
$brand: #3a5a21;
/* SwiftUI */
Color(red: 0.227, green: 0.353, blue: 0.129)
/* Android */
Color.parseColor("#3a5a21")
/* Flutter */
Color(0xFF3A5A21)
/* Python / OpenCV (BGR) */
(33, 90, 58)

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

Accessibility — WCAG contrast

Aa
#3a5a21 on white: 7.88:1
AA ✓ pass · AA-large · AAA
Aa
#3a5a21 on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5E531B
deuteranopia · #595125
tritanopia · #3A564E

Color scale — 50 to 950

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

#F7FAF5
#EFF5EA
#DCEBD0
#C4E1AD
#A6D284
#88C35B
#73B342
#609537
#4D772C
#3a5a21
#243716
Base = 900Lightest = 50 · #F7FAF5Darkest = 950 · #243716
:root {
  --brand-50: #F7FAF5;
  --brand-100: #EFF5EA;
  --brand-200: #DCEBD0;
  --brand-300: #C4E1AD;
  --brand-400: #A6D284;
  --brand-500: #88C35B;
  --brand-600: #73B342;
  --brand-700: #609537;
  --brand-800: #4D772C;
  --brand-900: #3a5a21;
  --brand-950: #243716;
  --brand: #3a5a21;
  --brand-ink: #ffffff;
}

Colors that work with #3a5a21

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#D4E9C3
Hairlines and dividers
Muted text#6E9B4B
Captions on the surface
Accent#321F5C
Second voice, not a rival
Dark variant#3C5D22
Hover, pressed, headers
Light variant#F2F8EC
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 #3a5a21

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#41215A
Analogous left#565A21
Analogous right#215A25
Split-complement 1#25215A
Split-complement 2#5A2156
Triadic 1#213A5A
Triadic 2#5A213A
Tetradic#21565A

RGB percentages

Red22.7%
Green35.3%
Blue12.9%

CMYK percentages

Cyan35.6%
Magenta0.0%
Yellow63.3%
Key (black)64.7%

Color previews

#3a5a21 text on a black background

contrast 2.66:1

Card sample

#3a5a21 text on a white background

contrast 7.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3a5a21;
Background color
Panel with #3a5a21 background
background-color: #3a5a21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(58, 90, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(58, 90, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3a5a21;
background: linear-gradient(135deg, #3a5a21, #215A2E);

Monochromatic scale

Palettes built from #3a5a21

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.

#3a5a21 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.

#3a5a21, answered

What color is #3a5a21?

#3a5a21 is a deep vivid green, closest to Dark Olive Green (ΔE2000 7.1). It sits at 94° on the hue wheel with 46% saturation and 24% lightness, which reads as neutral.

What is the RGB value of #3a5a21?

rgb(58, 90, 33) — 58 red, 90 green and 33 blue out of 255, or 22.7% / 35.3% / 12.9% by channel.

Is #3a5a21 a light or a dark color?

It is a dark color. Relative luminance is 0.0832 and perceived brightness is 30%, so white text on it reaches 7.88:1.

Should I use black or white text on #3a5a21?

White. It scores 7.88:1 against #3a5a21, versus 2.66:1 for black — AAA at any size.

What is the complementary color of #3a5a21?

#41215A sits directly opposite on the wheel. Softer options are the split-complements #25215A and #5A2156, which give the same contrast with far less vibration.

What colors go well with #3a5a21?

For interface work: #F7FAF4 as the surface, #D4E9C3 for borders, #6E9B4B for secondary text, #321F5C as an accent and #3C5D22 for hover and pressed states. For a palette, the analogous pair #565A21 and #215A25 stays calm, while #41215A is the loudest partner.

What is #3a5a21 in CMYK for printing?

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

Is #3a5a21 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 #4F5A21; nudged cooler, #245B20.

Work with #3a5a21 in the Color Lab