Skip to content

#1f6021

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

RGB
31, 96, 33
HSL
122°, 51%, 25%
CMYK
68, 0, 66, 62
Luminance
0.0877

At a glance

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

Hex
#1f6021
Hue
122°
green
Saturation
51%
vivid
Lightness
25%
deep
Brightness
38%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0877
WCAG relative
Temperature
Cool
63/100 cool
Color family
Green
Tone
Vivid
Best ink
White
7.63:1
Closest name
Dark Green
ΔE2000 4.7
Where it sits
Hue122° of 360°
Saturation51%
Lightness25%
Temperature
Warm ← → Cool63% 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#1f6021
RGBrgb(31, 96, 33)
HSLhsl(122, 51%, 25%)
CMYKcmyk(68%, 0%, 66%, 62%)
LABlab(35.5 -34.5 29.4)
LCHlch(35.5 45.3 139.6)
OKLCHoklch(0.433 0.116 143.7)
Decimal2056225
Display P3color(display-p3 0.122 0.376 0.129)

Copy-ready code

/* CSS */
color: #1f6021;
background-color: #1f6021;
/* Tailwind (arbitrary) */
class="text-[#1f6021] bg-[#1f6021]"
/* SCSS */
$brand: #1f6021;
/* SwiftUI */
Color(red: 0.122, green: 0.376, blue: 0.129)
/* Android */
Color.parseColor("#1f6021")
/* Flutter */
Color(0xFF1F6021)
/* Python / OpenCV (BGR) */
(33, 96, 31)

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 #1f6021 · 7.63:1
Use #ffffffAAA at every size.
Aa
White text · 7.63: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: #1f6021 as text scores 7.63:1 on white and 2.75:1 on black.

Accessibility — WCAG contrast

Aa
#1f6021 on white: 7.63:1
AA ✓ pass · AA-large · AAA
Aa
#1f6021 on black: 2.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #62571A
deuteranopia · #5A5126
tritanopia · #115D53

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f6021 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
#EAF6EA
#CFEDD0
#AAE4AC
#80D682
#55C859
#3CB93F
#329A35
#287B2A
#1f6021
#143815
Base = 900Lightest = 50 · #F4FAF4Darkest = 950 · #143815
:root {
  --brand-50: #F4FAF4;
  --brand-100: #EAF6EA;
  --brand-200: #CFEDD0;
  --brand-300: #AAE4AC;
  --brand-400: #80D682;
  --brand-500: #55C859;
  --brand-600: #3CB93F;
  --brand-700: #329A35;
  --brand-800: #287B2A;
  --brand-900: #1f6021;
  --brand-950: #143815;
  --brand: #1f6021;
  --brand-ink: #ffffff;
}

Colors that work with #1f6021

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#C1EBC3
Hairlines and dividers
Muted text#4B9B4D
Captions on the surface
Accent#531C63
Second voice, not a rival
Dark variant#1F6021
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 #1f6021

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#601F5E
Analogous left#3E601F
Analogous right#1F6041
Split-complement 1#411F60
Split-complement 2#601F3E
Triadic 1#211F60
Triadic 2#60211F
Tetradic#1F3E60

RGB percentages

Red12.2%
Green37.6%
Blue12.9%

CMYK percentages

Cyan67.7%
Magenta0.0%
Yellow65.6%
Key (black)62.4%

Color previews

#1f6021 text on a black background

contrast 2.75:1

Card sample

#1f6021 text on a white background

contrast 7.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f6021

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.

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

#1f6021, answered

What color is #1f6021?

#1f6021 is a deep vivid green, closest to Dark Green (ΔE2000 4.7). It sits at 122° on the hue wheel with 51% saturation and 25% lightness, which reads as cool.

What is the RGB value of #1f6021?

rgb(31, 96, 33) — 31 red, 96 green and 33 blue out of 255, or 12.2% / 37.6% / 12.9% by channel.

Is #1f6021 a light or a dark color?

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

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

White. It scores 7.63:1 against #1f6021, versus 2.75:1 for black — AAA at any size.

What is the complementary color of #1f6021?

#601F5E sits directly opposite on the wheel. Softer options are the split-complements #411F60 and #601F3E, which give the same contrast with far less vibration.

What colors go well with #1f6021?

For interface work: #F4FAF4 as the surface, #C1EBC3 for borders, #4B9B4D for secondary text, #531C63 as an accent and #1F6021 for hover and pressed states. For a palette, the analogous pair #3E601F and #1F6041 stays calm, while #601F5E is the loudest partner.

What is #1f6021 in CMYK for printing?

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

Is #1f6021 warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #35601F; nudged cooler, #1E6139.

Work with #1f6021 in the Color Lab