Skip to content

#1a5b21

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

RGB
26, 91, 33
HSL
127°, 56%, 23%
CMYK
71, 0, 64, 64
Luminance
0.0781

At a glance

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

Hex
#1a5b21
Hue
127°
green
Saturation
56%
vivid
Lightness
23%
deep
Brightness
36%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0781
WCAG relative
Temperature
Cool
65/100 cool
Color family
Green
Tone
Vivid
Best ink
White
8.20:1
Closest name
Dark Green
ΔE2000 6
Where it sits
Hue127° of 360°
Saturation56%
Lightness23%
Temperature
Warm ← → Cool65% 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#1a5b21
RGBrgb(26, 91, 33)
HSLhsl(127, 56%, 23%)
CMYKcmyk(71%, 0%, 64%, 64%)
LABlab(33.6 -33.6 27.1)
LCHlch(33.6 43.2 141.2)
OKLCHoklch(0.416 0.111 144.9)
Decimal1727265
Display P3color(display-p3 0.102 0.357 0.129)

Copy-ready code

/* CSS */
color: #1a5b21;
background-color: #1a5b21;
/* Tailwind (arbitrary) */
class="text-[#1a5b21] bg-[#1a5b21]"
/* SCSS */
$brand: #1a5b21;
/* SwiftUI */
Color(red: 0.102, green: 0.357, blue: 0.129)
/* Android */
Color.parseColor("#1a5b21")
/* Flutter */
Color(0xFF1A5B21)
/* Python / OpenCV (BGR) */
(33, 91, 26)

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

Accessibility — WCAG contrast

Aa
#1a5b21 on white: 8.20:1
AA ✓ pass · AA-large · AAA
Aa
#1a5b21 on black: 2.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5D521B
deuteranopia · #554D26
tritanopia · #07594E

Color scale — 50 to 950

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

#F4FBF5
#E9F6EB
#CEEED1
#A8E6AE
#7CDA86
#50CD5E
#36BE45
#2D9F3A
#247F2E
#1a5b21
#133A17
Base = 900Lightest = 50 · #F4FBF5Darkest = 950 · #133A17
:root {
  --brand-50: #F4FBF5;
  --brand-100: #E9F6EB;
  --brand-200: #CEEED1;
  --brand-300: #A8E6AE;
  --brand-400: #7CDA86;
  --brand-500: #50CD5E;
  --brand-600: #36BE45;
  --brand-700: #2D9F3A;
  --brand-800: #247F2E;
  --brand-900: #1a5b21;
  --brand-950: #133A17;
  --brand: #1a5b21;
  --brand-ink: #ffffff;
}

Colors that work with #1a5b21

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#F4FAF5
Tinted page background
Border#C0EDC5
Hairlines and dividers
Muted text#4B9B53
Captions on the surface
Accent#53185D
Second voice, not a rival
Dark variant#1C6324
Hover, pressed, headers
Light variant#EBF9ED
Selected rows, tints
Dark surface#142415
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 #1a5b21

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#5B1A54
Analogous left#335B1A
Analogous right#1A5B41
Split-complement 1#411A5B
Split-complement 2#5B1A33
Triadic 1#211A5B
Triadic 2#5B211A
Tetradic#1A335B

RGB percentages

Red10.2%
Green35.7%
Blue12.9%

CMYK percentages

Cyan71.4%
Magenta0.0%
Yellow63.7%
Key (black)64.3%

Color previews

#1a5b21 text on a black background

contrast 2.56:1

Card sample

#1a5b21 text on a white background

contrast 8.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1a5b21;
Background color
Panel with #1a5b21 background
background-color: #1a5b21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(26, 91, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(26, 91, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1a5b21;
background: linear-gradient(135deg, #1a5b21, #1A5B4C);

Monochromatic scale

Palettes built from #1a5b21

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.

#1a5b21 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.

#1a5b21, answered

What color is #1a5b21?

#1a5b21 is a deep vivid green, closest to Dark Green (ΔE2000 6). It sits at 127° on the hue wheel with 56% saturation and 23% lightness, which reads as cool.

What is the RGB value of #1a5b21?

rgb(26, 91, 33) — 26 red, 91 green and 33 blue out of 255, or 10.2% / 35.7% / 12.9% by channel.

Is #1a5b21 a light or a dark color?

It is a dark color. Relative luminance is 0.0781 and perceived brightness is 28%, so white text on it reaches 8.20:1.

Should I use black or white text on #1a5b21?

White. It scores 8.20:1 against #1a5b21, versus 2.56:1 for black — AAA at any size.

What is the complementary color of #1a5b21?

#5B1A54 sits directly opposite on the wheel. Softer options are the split-complements #411A5B and #5B1A33, which give the same contrast with far less vibration.

What colors go well with #1a5b21?

For interface work: #F4FAF5 as the surface, #C0EDC5 for borders, #4B9B53 for secondary text, #53185D as an accent and #1C6324 for hover and pressed states. For a palette, the analogous pair #335B1A and #1A5B41 stays calm, while #5B1A54 is the loudest partner.

What is #1a5b21 in CMYK for printing?

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

Is #1a5b21 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2B5B1A; nudged cooler, #195C39.

Work with #1a5b21 in the Color Lab