Skip to content

#1f2813

a deep, soft green · neutral · closest name: Black

RGB
31, 40, 19
HSL
86°, 36%, 12%
CMYK
23, 0, 53, 84
Luminance
0.0186

At a glance

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

Hex
#1f2813
Hue
86°
green
Saturation
36%
soft
Lightness
12%
deep
Brightness
16%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0186
WCAG relative
Temperature
Neutral
46/100 cool
Color family
Green
Tone
Soft
Best ink
White
15.32:1
Closest name
Black
ΔE2000 15.6
Where it sits
Hue86° of 360°
Saturation36%
Lightness12%
Temperature
Warm ← → Cool46% 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#1f2813
RGBrgb(31, 40, 19)
HSLhsl(86, 36%, 12%)
CMYKcmyk(23%, 0%, 53%, 84%)
LABlab(14.7 -8.6 12.5)
LCHlch(14.7 15.2 124.5)
OKLCHoklch(0.262 0.039 127.8)
Decimal2041875
Display P3color(display-p3 0.122 0.157 0.075)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f2813 on white: 15.32:1
AA ✓ pass · AA-large · AAA
Aa
#1f2813 on black: 1.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2A2511
deuteranopia · #292514
tritanopia · #202623

Color scale — 50 to 950

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

#F8F9F5
#F0F4EB
#DFE8D3
#CADBB3
#AFC98D
#95B767
#81A64F
#6B8A42
#566F35
#405129
#1f2813
Base = 950Lightest = 50 · #F8F9F5Darkest = 950 · #1f2813
:root {
  --brand-50: #F8F9F5;
  --brand-100: #F0F4EB;
  --brand-200: #DFE8D3;
  --brand-300: #CADBB3;
  --brand-400: #AFC98D;
  --brand-500: #95B767;
  --brand-600: #81A64F;
  --brand-700: #6B8A42;
  --brand-800: #566F35;
  --brand-900: #405129;
  --brand-950: #1f2813;
  --brand: #1f2813;
  --brand-ink: #ffffff;
}

Colors that work with #1f2813

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#F8FAF5
Tinted page background
Border#D8E5C8
Hairlines and dividers
Muted text#799B4B
Captions on the surface
Accent#161229
Second voice, not a rival
Dark variant#435629
Hover, pressed, headers
Light variant#F3F7EE
Selected rows, tints
Dark surface#1D2414
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 #1f2813

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#1C1328
Analogous left#282713
Analogous right#152813
Split-complement 1#131528
Split-complement 2#271328
Triadic 1#131F28
Triadic 2#28131F
Tetradic#132827

RGB percentages

Red12.2%
Green15.7%
Blue7.5%

CMYK percentages

Cyan22.5%
Magenta0.0%
Yellow52.5%
Key (black)84.3%

Color previews

#1f2813 text on a black background

contrast 1.37:1

Card sample

#1f2813 text on a white background

contrast 15.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f2813

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.

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

#1f2813, answered

What color is #1f2813?

#1f2813 is a deep soft green, closest to Black (ΔE2000 15.6). It sits at 86° on the hue wheel with 36% saturation and 12% lightness, which reads as neutral.

What is the RGB value of #1f2813?

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

Is #1f2813 a light or a dark color?

It is a dark color. Relative luminance is 0.0186 and perceived brightness is 14%, so white text on it reaches 15.32:1.

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

White. It scores 15.32:1 against #1f2813, versus 1.37:1 for black — AAA at any size.

What is the complementary color of #1f2813?

#1C1328 sits directly opposite on the wheel. Softer options are the split-complements #131528 and #271328, which give the same contrast with far less vibration.

What colors go well with #1f2813?

For interface work: #F8FAF5 as the surface, #D8E5C8 for borders, #799B4B for secondary text, #161229 as an accent and #435629 for hover and pressed states. For a palette, the analogous pair #282713 and #152813 stays calm, while #1C1328 is the loudest partner.

What is #1f2813 in CMYK for printing?

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

Is #1f2813 warm or cool?

Neutral — it scores 46 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #272813; nudged cooler, #172912.

Work with #1f2813 in the Color Lab