Skip to content

#226a21

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

RGB
34, 106, 33
HSL
119°, 53%, 27%
CMYK
68, 0, 69, 58
Luminance
0.1076

At a glance

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

Hex
#226a21
Hue
119°
green
Saturation
53%
vivid
Lightness
27%
dark
Brightness
42%
HSV value
Perceived
33%
weighted brightness
Luminance
0.1076
WCAG relative
Temperature
Cool
62/100 cool
Color family
Green
Tone
Vivid
Best ink
White
6.66:1
Closest name
Dark Green
ΔE2000 3.9
Where it sits
Hue119° of 360°
Saturation53%
Lightness27%
Temperature
Warm ← → Cool62% 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#226a21
RGBrgb(34, 106, 33)
HSLhsl(119, 53%, 27%)
CMYKcmyk(68%, 0%, 69%, 58%)
LABlab(39.2 -37.7 33.4)
LCHlch(39.2 50.4 138.5)
OKLCHoklch(0.463 0.129 143.0)
Decimal2255393
Display P3color(display-p3 0.133 0.416 0.129)

Copy-ready code

/* CSS */
color: #226a21;
background-color: #226a21;
/* Tailwind (arbitrary) */
class="text-[#226a21] bg-[#226a21]"
/* SCSS */
$brand: #226a21;
/* SwiftUI */
Color(red: 0.133, green: 0.416, blue: 0.129)
/* Android */
Color.parseColor("#226a21")
/* Flutter */
Color(0xFF226A21)
/* Python / OpenCV (BGR) */
(33, 106, 34)

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

Accessibility — WCAG contrast

Aa
#226a21 on white: 6.66:1
AA ✓ pass · AA-large · AAA
Aa
#226a21 on black: 3.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #6C6018
deuteranopia · #645A27
tritanopia · #13675B

Color scale — 50 to 950

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

#F4FAF4
#EAF6E9
#CFEDCF
#AAE4A9
#80D77F
#55CA54
#3CBB3A
#329C30
#287C27
#226a21
#143914
Base = 900Lightest = 50 · #F4FAF4Darkest = 950 · #143914
:root {
  --brand-50: #F4FAF4;
  --brand-100: #EAF6E9;
  --brand-200: #CFEDCF;
  --brand-300: #AAE4A9;
  --brand-400: #80D77F;
  --brand-500: #55CA54;
  --brand-600: #3CBB3A;
  --brand-700: #329C30;
  --brand-800: #287C27;
  --brand-900: #226a21;
  --brand-950: #143914;
  --brand: #226a21;
  --brand-ink: #ffffff;
}

Colors that work with #226a21

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#F4FAF4
Tinted page background
Border#C1ECC1
Hairlines and dividers
Muted text#4C9B4B
Captions on the surface
Accent#581E6D
Second voice, not a rival
Dark variant#1F611E
Hover, pressed, headers
Light variant#ECF9EC
Selected rows, tints
Dark surface#142414
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 #226a21

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#69216A
Analogous left#476A21
Analogous right#216A45
Split-complement 1#45216A
Split-complement 2#6A2147
Triadic 1#21226A
Triadic 2#6A2122
Tetradic#21476A

RGB percentages

Red13.3%
Green41.6%
Blue12.9%

CMYK percentages

Cyan67.9%
Magenta0.0%
Yellow68.9%
Key (black)58.4%

Color previews

#226a21 text on a black background

contrast 3.15:1

Card sample

#226a21 text on a white background

contrast 6.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #226a21;
Background color
Panel with #226a21 background
background-color: #226a21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(34, 106, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(34, 106, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #226a21;
background: linear-gradient(135deg, #226a21, #216A51);

Monochromatic scale

Palettes built from #226a21

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.

#226a21 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.

#226a21, answered

What color is #226a21?

#226a21 is a dark vivid green, closest to Dark Green (ΔE2000 3.9). It sits at 119° on the hue wheel with 53% saturation and 27% lightness, which reads as cool.

What is the RGB value of #226a21?

rgb(34, 106, 33) — 34 red, 106 green and 33 blue out of 255, or 13.3% / 41.6% / 12.9% by channel.

Is #226a21 a light or a dark color?

It is a dark color. Relative luminance is 0.1076 and perceived brightness is 33%, so white text on it reaches 6.66:1.

Should I use black or white text on #226a21?

White. It scores 6.66:1 against #226a21, versus 3.15:1 for black — AA at any size.

What is the complementary color of #226a21?

#69216A sits directly opposite on the wheel. Softer options are the split-complements #45216A and #6A2147, which give the same contrast with far less vibration.

What colors go well with #226a21?

For interface work: #F4FAF4 as the surface, #C1ECC1 for borders, #4C9B4B for secondary text, #581E6D as an accent and #1F611E for hover and pressed states. For a palette, the analogous pair #476A21 and #216A45 stays calm, while #69216A is the loudest partner.

What is #226a21 in CMYK for printing?

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

Is #226a21 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3D6A21; nudged cooler, #206C3A.

Work with #226a21 in the Color Lab