Skip to content

#1f331d

a deep, soft green · cool · closest name: Dark Slate Gray

RGB
31, 51, 29
HSL
115°, 28%, 16%
CMYK
39, 0, 43, 80
Luminance
0.0275

At a glance

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

Hex
#1f331d
Hue
115°
green
Saturation
28%
soft
Lightness
16%
deep
Brightness
20%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0275
WCAG relative
Temperature
Cool
58/100 cool
Color family
Green
Tone
Soft
Best ink
White
13.55:1
Closest name
Dark Slate Gray
ΔE2000 14.4
Where it sits
Hue115° of 360°
Saturation28%
Lightness16%
Temperature
Warm ← → Cool58% 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#1f331d
RGBrgb(31, 51, 29)
HSLhsl(115, 28%, 16%)
CMYKcmyk(39%, 0%, 43%, 80%)
LABlab(19.0 -13.5 11.5)
LCHlch(19.0 17.7 139.7)
OKLCHoklch(0.297 0.047 142.2)
Decimal2044701
Display P3color(display-p3 0.122 0.200 0.114)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f331d on white: 13.55:1
AA ✓ pass · AA-large · AAA
Aa
#1f331d on black: 1.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #342F1B
deuteranopia · #312D1E
tritanopia · #1D322D

Color scale — 50 to 950

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

#F6F9F6
#EDF3EC
#D7E6D6
#BAD6B7
#98C294
#76AE70
#5F9C59
#4F824A
#3F683B
#314D2E
#1f331d
Base = 950Lightest = 50 · #F6F9F6Darkest = 950 · #1f331d
:root {
  --brand-50: #F6F9F6;
  --brand-100: #EDF3EC;
  --brand-200: #D7E6D6;
  --brand-300: #BAD6B7;
  --brand-400: #98C294;
  --brand-500: #76AE70;
  --brand-600: #5F9C59;
  --brand-700: #4F824A;
  --brand-800: #3F683B;
  --brand-900: #314D2E;
  --brand-950: #1f331d;
  --brand: #1f331d;
  --brand-ink: #ffffff;
}

Colors that work with #1f331d

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#F6F9F5
Tinted page background
Border#CDE1CB
Hairlines and dividers
Muted text#599253
Captions on the surface
Accent#2C1B35
Second voice, not a rival
Dark variant#31512E
Hover, pressed, headers
Light variant#EFF6EF
Selected rows, tints
Dark surface#162414
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 #1f331d

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#311D33
Analogous left#2A331D
Analogous right#1D3326
Split-complement 1#261D33
Split-complement 2#331D2A
Triadic 1#1D1F33
Triadic 2#331D1F
Tetradic#1D2A33

RGB percentages

Red12.2%
Green20.0%
Blue11.4%

CMYK percentages

Cyan39.2%
Magenta0.0%
Yellow43.1%
Key (black)80.0%

Color previews

#1f331d text on a black background

contrast 1.55:1

Card sample

#1f331d text on a white background

contrast 13.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f331d

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.

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

#1f331d, answered

What color is #1f331d?

#1f331d is a deep soft green, closest to Dark Slate Gray (ΔE2000 14.4). It sits at 115° on the hue wheel with 28% saturation and 16% lightness, which reads as cool.

What is the RGB value of #1f331d?

rgb(31, 51, 29) — 31 red, 51 green and 29 blue out of 255, or 12.2% / 20% / 11.4% by channel.

Is #1f331d a light or a dark color?

It is a dark color. Relative luminance is 0.0275 and perceived brightness is 17%, so white text on it reaches 13.55:1.

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

White. It scores 13.55:1 against #1f331d, versus 1.55:1 for black — AAA at any size.

What is the complementary color of #1f331d?

#311D33 sits directly opposite on the wheel. Softer options are the split-complements #261D33 and #331D2A, which give the same contrast with far less vibration.

What colors go well with #1f331d?

For interface work: #F6F9F5 as the surface, #CDE1CB for borders, #599253 for secondary text, #2C1B35 as an accent and #31512E for hover and pressed states. For a palette, the analogous pair #2A331D and #1D3326 stays calm, while #311D33 is the loudest partner.

What is #1f331d in CMYK for printing?

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

Is #1f331d warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #27331D; nudged cooler, #1C3423.

Work with #1f331d in the Color Lab