Skip to content

#305e21

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

RGB
48, 94, 33
HSL
105°, 48%, 25%
CMYK
49, 0, 65, 63
Luminance
0.0874

At a glance

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

Hex
#305e21
Hue
105°
green
Saturation
48%
vivid
Lightness
25%
deep
Brightness
37%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0874
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Green
Tone
Vivid
Best ink
White
7.64:1
Closest name
Dark Green
ΔE2000 6
Where it sits
Hue105° of 360°
Saturation48%
Lightness25%
Temperature
Warm ← → Cool56% 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#305e21
RGBrgb(48, 94, 33)
HSLhsl(105, 48%, 25%)
CMYKcmyk(49%, 0%, 65%, 63%)
LABlab(35.5 -28.6 29.5)
LCHlch(35.5 41.0 134.1)
OKLCHoklch(0.434 0.104 138.8)
Decimal3169825
Display P3color(display-p3 0.188 0.369 0.129)

Copy-ready code

/* CSS */
color: #305e21;
background-color: #305e21;
/* Tailwind (arbitrary) */
class="text-[#305e21] bg-[#305e21]"
/* SCSS */
$brand: #305e21;
/* SwiftUI */
Color(red: 0.188, green: 0.369, blue: 0.129)
/* Android */
Color.parseColor("#305e21")
/* Flutter */
Color(0xFF305E21)
/* Python / OpenCV (BGR) */
(33, 94, 48)

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

Accessibility — WCAG contrast

Aa
#305e21 on white: 7.64:1
AA ✓ pass · AA-large · AAA
Aa
#305e21 on black: 2.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #61561A
deuteranopia · #5B5226
tritanopia · #2D5B51

Color scale — 50 to 950

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

#F6FAF4
#EDF5EA
#D7ECD0
#B9E2AC
#96D382
#74C559
#5DB540
#4D9735
#3E792A
#305e21
#1E3715
Base = 900Lightest = 50 · #F6FAF4Darkest = 950 · #1E3715
:root {
  --brand-50: #F6FAF4;
  --brand-100: #EDF5EA;
  --brand-200: #D7ECD0;
  --brand-300: #B9E2AC;
  --brand-400: #96D382;
  --brand-500: #74C559;
  --brand-600: #5DB540;
  --brand-700: #4D9735;
  --brand-800: #3E792A;
  --brand-900: #305e21;
  --brand-950: #1E3715;
  --brand: #305e21;
  --brand-ink: #ffffff;
}

Colors that work with #305e21

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#CCEAC3
Hairlines and dividers
Muted text#5E9B4B
Captions on the surface
Accent#401E61
Second voice, not a rival
Dark variant#305E21
Hover, pressed, headers
Light variant#EFF8EC
Selected rows, tints
Dark surface#182414
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 #305e21

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#4F215E
Analogous left#4F5E21
Analogous right#215E30
Split-complement 1#30215E
Split-complement 2#5E214F
Triadic 1#21305E
Triadic 2#5E2130
Tetradic#214F5E

RGB percentages

Red18.8%
Green36.9%
Blue12.9%

CMYK percentages

Cyan48.9%
Magenta0.0%
Yellow64.9%
Key (black)63.1%

Color previews

#305e21 text on a black background

contrast 2.75:1

Card sample

#305e21 text on a white background

contrast 7.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #305e21;
Background color
Panel with #305e21 background
background-color: #305e21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(48, 94, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 94, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #305e21;
background: linear-gradient(135deg, #305e21, #215E3B);

Monochromatic scale

Palettes built from #305e21

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.

#305e21 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.

#305e21, answered

What color is #305e21?

#305e21 is a deep vivid green, closest to Dark Green (ΔE2000 6). It sits at 105° on the hue wheel with 48% saturation and 25% lightness, which reads as neutral.

What is the RGB value of #305e21?

rgb(48, 94, 33) — 48 red, 94 green and 33 blue out of 255, or 18.8% / 36.9% / 12.9% by channel.

Is #305e21 a light or a dark color?

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

Should I use black or white text on #305e21?

White. It scores 7.64:1 against #305e21, versus 2.75:1 for black — AAA at any size.

What is the complementary color of #305e21?

#4F215E sits directly opposite on the wheel. Softer options are the split-complements #30215E and #5E214F, which give the same contrast with far less vibration.

What colors go well with #305e21?

For interface work: #F6FAF4 as the surface, #CCEAC3 for borders, #5E9B4B for secondary text, #401E61 as an accent and #305E21 for hover and pressed states. For a palette, the analogous pair #4F5E21 and #215E30 stays calm, while #4F215E is the loudest partner.

What is #305e21 in CMYK for printing?

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

Is #305e21 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #465E21; nudged cooler, #205F27.

Work with #305e21 in the Color Lab