Skip to content

#1f4813

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

RGB
31, 72, 19
HSL
106°, 58%, 18%
CMYK
57, 0, 74, 72
Luminance
0.0497

At a glance

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

Hex
#1f4813
Hue
106°
green
Saturation
58%
vivid
Lightness
18%
deep
Brightness
28%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0497
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Vivid
Best ink
White
10.53:1
Closest name
Dark Green
ΔE2000 10.5
Where it sits
Hue106° of 360°
Saturation58%
Lightness18%
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#1f4813
RGBrgb(31, 72, 19)
HSLhsl(106, 58%, 18%)
CMYKcmyk(57%, 0%, 74%, 72%)
LABlab(26.7 -25.9 26.5)
LCHlch(26.7 37.0 134.3)
OKLCHoklch(0.359 0.094 139.4)
Decimal2050067
Display P3color(display-p3 0.122 0.282 0.075)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f4813 on white: 10.53:1
AA ✓ pass · AA-large · AAA
Aa
#1f4813 on black: 1.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4A410C
deuteranopia · #453E18
tritanopia · #1B453D

Color scale — 50 to 950

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

#F5FBF4
#ECF7E9
#D5EFCD
#B5E8A6
#90DC7A
#6BD04D
#53C233
#46A12B
#388122
#2B5E1C
#1f4813
Base = 950Lightest = 50 · #F5FBF4Darkest = 950 · #1f4813
:root {
  --brand-50: #F5FBF4;
  --brand-100: #ECF7E9;
  --brand-200: #D5EFCD;
  --brand-300: #B5E8A6;
  --brand-400: #90DC7A;
  --brand-500: #6BD04D;
  --brand-600: #53C233;
  --brand-700: #46A12B;
  --brand-800: #388122;
  --brand-900: #2B5E1C;
  --brand-950: #1f4813;
  --brand: #1f4813;
  --brand-ink: #ffffff;
}

Colors that work with #1f4813

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#CAEDC0
Hairlines and dividers
Muted text#5D9B4B
Captions on the surface
Accent#2F114A
Second voice, not a rival
Dark variant#2B651B
Hover, pressed, headers
Light variant#EEFAEB
Selected rows, tints
Dark surface#172414
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 #1f4813

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#3C1348
Analogous left#394813
Analogous right#134821
Split-complement 1#211348
Split-complement 2#481339
Triadic 1#131F48
Triadic 2#48131F
Tetradic#133948

RGB percentages

Red12.2%
Green28.2%
Blue7.5%

CMYK percentages

Cyan56.9%
Magenta0.0%
Yellow73.6%
Key (black)71.8%

Color previews

#1f4813 text on a black background

contrast 1.99:1

Card sample

#1f4813 text on a white background

contrast 10.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 72, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 72, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f4813;
background: linear-gradient(135deg, #1f4813, #13482A);

Monochromatic scale

Palettes built from #1f4813

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.

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

#1f4813, answered

What color is #1f4813?

#1f4813 is a deep vivid green, closest to Dark Green (ΔE2000 10.5). It sits at 106° on the hue wheel with 58% saturation and 18% lightness, which reads as neutral.

What is the RGB value of #1f4813?

rgb(31, 72, 19) — 31 red, 72 green and 19 blue out of 255, or 12.2% / 28.2% / 7.5% by channel.

Is #1f4813 a light or a dark color?

It is a dark color. Relative luminance is 0.0497 and perceived brightness is 23%, so white text on it reaches 10.53:1.

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

White. It scores 10.53:1 against #1f4813, versus 1.99:1 for black — AAA at any size.

What is the complementary color of #1f4813?

#3C1348 sits directly opposite on the wheel. Softer options are the split-complements #211348 and #481339, which give the same contrast with far less vibration.

What colors go well with #1f4813?

For interface work: #F6FAF4 as the surface, #CAEDC0 for borders, #5D9B4B for secondary text, #2F114A as an accent and #2B651B for hover and pressed states. For a palette, the analogous pair #394813 and #134821 stays calm, while #3C1348 is the loudest partner.

What is #1f4813 in CMYK for printing?

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

Is #1f4813 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 #324813; nudged cooler, #12491A.

Work with #1f4813 in the Color Lab