Skip to content

#1f5f3b

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

RGB
31, 95, 59
HSL
146°, 51%, 25%
CMYK
67, 0, 38, 63
Luminance
0.0879

At a glance

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

Hex
#1f5f3b
Hue
146°
green
Saturation
51%
vivid
Lightness
25%
deep
Brightness
37%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0879
WCAG relative
Temperature
Cool
73/100 cool
Color family
Green
Tone
Vivid
Best ink
White
7.61:1
Closest name
Dark Green
ΔE2000 11.1
Where it sits
Hue146° of 360°
Saturation51%
Lightness25%
Temperature
Warm ← → Cool73% 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#1f5f3b
RGBrgb(31, 95, 59)
HSLhsl(146, 51%, 25%)
CMYKcmyk(67%, 0%, 38%, 63%)
LABlab(35.6 -29.6 14.8)
LCHlch(35.6 33.0 153.4)
OKLCHoklch(0.434 0.088 155.1)
Decimal2055995
Display P3color(display-p3 0.122 0.373 0.231)

Copy-ready code

/* CSS */
color: #1f5f3b;
background-color: #1f5f3b;
/* Tailwind (arbitrary) */
class="text-[#1f5f3b] bg-[#1f5f3b]"
/* SCSS */
$brand: #1f5f3b;
/* SwiftUI */
Color(red: 0.122, green: 0.373, blue: 0.231)
/* Android */
Color.parseColor("#1f5f3b")
/* Flutter */
Color(0xFF1F5F3B)
/* Python / OpenCV (BGR) */
(59, 95, 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 #1f5f3b · 7.61:1
Use #ffffffAAA at every size.
Aa
White text · 7.61:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.76:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1f5f3b as text scores 7.61:1 on white and 2.76:1 on black.

Accessibility — WCAG contrast

Aa
#1f5f3b on white: 7.61:1
AA ✓ pass · AA-large · AAA
Aa
#1f5f3b on black: 2.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5F5739
deuteranopia · #56513D
tritanopia · #025E56

Color scale — 50 to 950

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

#F4FAF7
#EAF6EF
#CFEDDC
#AAE3C3
#80D6A6
#56C888
#3CB973
#329A60
#287B4C
#1f5f3b
#143824
Base = 900Lightest = 50 · #F4FAF7Darkest = 950 · #143824
:root {
  --brand-50: #F4FAF7;
  --brand-100: #EAF6EF;
  --brand-200: #CFEDDC;
  --brand-300: #AAE3C3;
  --brand-400: #80D6A6;
  --brand-500: #56C888;
  --brand-600: #3CB973;
  --brand-700: #329A60;
  --brand-800: #287B4C;
  --brand-900: #1f5f3b;
  --brand-950: #143824;
  --brand: #1f5f3b;
  --brand-ink: #ffffff;
}

Colors that work with #1f5f3b

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#F4FAF7
Tinted page background
Border#C1EBD4
Hairlines and dividers
Muted text#4B9B6E
Captions on the surface
Accent#621C54
Second voice, not a rival
Dark variant#1F603C
Hover, pressed, headers
Light variant#ECF9F1
Selected rows, tints
Dark surface#14241B
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 #1f5f3b

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#5F1F43
Analogous left#235F1F
Analogous right#1F5F5B
Split-complement 1#5B1F5F
Split-complement 2#5F1F23
Triadic 1#3B1F5F
Triadic 2#5F3B1F
Tetradic#1F235F

RGB percentages

Red12.2%
Green37.3%
Blue23.1%

CMYK percentages

Cyan67.4%
Magenta0.0%
Yellow37.9%
Key (black)62.7%

Color previews

#1f5f3b text on a black background

contrast 2.76:1

Card sample

#1f5f3b text on a white background

contrast 7.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f5f3b

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.

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

#1f5f3b, answered

What color is #1f5f3b?

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

What is the RGB value of #1f5f3b?

rgb(31, 95, 59) — 31 red, 95 green and 59 blue out of 255, or 12.2% / 37.3% / 23.1% by channel.

Is #1f5f3b a light or a dark color?

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

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

White. It scores 7.61:1 against #1f5f3b, versus 2.76:1 for black — AAA at any size.

What is the complementary color of #1f5f3b?

#5F1F43 sits directly opposite on the wheel. Softer options are the split-complements #5B1F5F and #5F1F23, which give the same contrast with far less vibration.

What colors go well with #1f5f3b?

For interface work: #F4FAF7 as the surface, #C1EBD4 for borders, #4B9B6E for secondary text, #621C54 as an accent and #1F603C for hover and pressed states. For a palette, the analogous pair #235F1F and #1F5F5B stays calm, while #5F1F43 is the loudest partner.

What is #1f5f3b in CMYK for printing?

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

Is #1f5f3b warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1F5F24; nudged cooler, #1E6053.

Work with #1f5f3b in the Color Lab