Skip to content

#336e21

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

RGB
51, 110, 33
HSL
106°, 54%, 28%
CMYK
54, 0, 70, 57
Luminance
0.1197

At a glance

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

Hex
#336e21
Hue
106°
green
Saturation
54%
vivid
Lightness
28%
dark
Brightness
43%
HSV value
Perceived
35%
weighted brightness
Luminance
0.1197
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Vivid
Best ink
White
6.19:1
Closest name
Dark Green
ΔE2000 5.3
Where it sits
Hue106° of 360°
Saturation54%
Lightness28%
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#336e21
RGBrgb(51, 110, 33)
HSLhsl(106, 54%, 28%)
CMYKcmyk(54%, 0%, 70%, 57%)
LABlab(41.2 -34.7 35.8)
LCHlch(41.2 49.8 134.1)
OKLCHoklch(0.481 0.126 139.2)
Decimal3370529
Display P3color(display-p3 0.200 0.431 0.129)

Copy-ready code

/* CSS */
color: #336e21;
background-color: #336e21;
/* Tailwind (arbitrary) */
class="text-[#336e21] bg-[#336e21]"
/* SCSS */
$brand: #336e21;
/* SwiftUI */
Color(red: 0.200, green: 0.431, blue: 0.129)
/* Android */
Color.parseColor("#336e21")
/* Flutter */
Color(0xFF336E21)
/* Python / OpenCV (BGR) */
(33, 110, 51)

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 #336e21 · 6.19:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.19:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.39:1
AA fail · AA large pass · AAA fail
Reading the other direction: #336e21 as text scores 6.19:1 on white and 3.39:1 on black.

Accessibility — WCAG contrast

Aa
#336e21 on white: 6.19:1
AA ✓ pass · AA-large · AAA
Aa
#336e21 on black: 3.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #716417
deuteranopia · #6A5F28
tritanopia · #2E6A5E

Color scale — 50 to 950

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

#F6FBF4
#ECF6E9
#D5EECE
#B7E5A9
#93D87E
#6FCB52
#57BC39
#499D2F
#336e21
#2D5B1F
#1C3913
Base = 800Lightest = 50 · #F6FBF4Darkest = 950 · #1C3913
:root {
  --brand-50: #F6FBF4;
  --brand-100: #ECF6E9;
  --brand-200: #D5EECE;
  --brand-300: #B7E5A9;
  --brand-400: #93D87E;
  --brand-500: #6FCB52;
  --brand-600: #57BC39;
  --brand-700: #499D2F;
  --brand-800: #336e21;
  --brand-900: #2D5B1F;
  --brand-950: #1C3913;
  --brand: #336e21;
  --brand-ink: #ffffff;
}

Colors that work with #336e21

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#CAECC0
Hairlines and dividers
Muted text#5D9B4B
Captions on the surface
Accent#491E71
Second voice, not a rival
Dark variant#2D621D
Hover, pressed, headers
Light variant#EFF9EB
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 #336e21

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#5C216E
Analogous left#596E21
Analogous right#216E35
Split-complement 1#35216E
Split-complement 2#6E2159
Triadic 1#21336E
Triadic 2#6E2133
Tetradic#21596E

RGB percentages

Red20.0%
Green43.1%
Blue12.9%

CMYK percentages

Cyan53.6%
Magenta0.0%
Yellow70.0%
Key (black)56.9%

Color previews

#336e21 text on a black background

contrast 3.39:1

Card sample

#336e21 text on a white background

contrast 6.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(51, 110, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 110, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #336e21;
background: linear-gradient(135deg, #336e21, #216E42);

Monochromatic scale

Palettes built from #336e21

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.

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

#336e21, answered

What color is #336e21?

#336e21 is a dark vivid green, closest to Dark Green (ΔE2000 5.3). It sits at 106° on the hue wheel with 54% saturation and 28% lightness, which reads as neutral.

What is the RGB value of #336e21?

rgb(51, 110, 33) — 51 red, 110 green and 33 blue out of 255, or 20% / 43.1% / 12.9% by channel.

Is #336e21 a light or a dark color?

It is a dark color. Relative luminance is 0.1197 and perceived brightness is 35%, so white text on it reaches 6.19:1.

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

White. It scores 6.19:1 against #336e21, versus 3.39:1 for black — AA at any size.

What is the complementary color of #336e21?

#5C216E sits directly opposite on the wheel. Softer options are the split-complements #35216E and #6E2159, which give the same contrast with far less vibration.

What colors go well with #336e21?

For interface work: #F6FAF4 as the surface, #CAECC0 for borders, #5D9B4B for secondary text, #491E71 as an accent and #2D621D for hover and pressed states. For a palette, the analogous pair #596E21 and #216E35 stays calm, while #5C216E is the loudest partner.

What is #336e21 in CMYK for printing?

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

Is #336e21 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 #4F6E21; nudged cooler, #206F2A.

Work with #336e21 in the Color Lab