Skip to content

#1f331b

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

RGB
31, 51, 27
HSL
110°, 31%, 15%
CMYK
39, 0, 47, 80
Luminance
0.0274

At a glance

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

Hex
#1f331b
Hue
110°
green
Saturation
31%
soft
Lightness
15%
deep
Brightness
20%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0274
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Soft
Best ink
White
13.57:1
Closest name
Dark Slate Gray
ΔE2000 15
Where it sits
Hue110° of 360°
Saturation31%
Lightness15%
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#1f331b
RGBrgb(31, 51, 27)
HSLhsl(110, 31%, 15%)
CMYKcmyk(39%, 0%, 47%, 80%)
LABlab(19.0 -13.9 12.7)
LCHlch(19.0 18.9 137.5)
OKLCHoklch(0.297 0.049 140.3)
Decimal2044699
Display P3color(display-p3 0.122 0.200 0.106)

Copy-ready code

/* CSS */
color: #1f331b;
background-color: #1f331b;
/* Tailwind (arbitrary) */
class="text-[#1f331b] bg-[#1f331b]"
/* SCSS */
$brand: #1f331b;
/* SwiftUI */
Color(red: 0.122, green: 0.200, blue: 0.106)
/* Android */
Color.parseColor("#1f331b")
/* Flutter */
Color(0xFF1F331B)
/* Python / OpenCV (BGR) */
(27, 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 #1f331b · 13.57:1
Use #ffffffAAA at every size.
Aa
White text · 13.57: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: #1f331b as text scores 13.57:1 on white and 1.55:1 on black.

Accessibility — WCAG contrast

Aa
#1f331b on white: 13.57:1
AA ✓ pass · AA-large · AAA
Aa
#1f331b on black: 1.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #342F19
deuteranopia · #312D1C
tritanopia · #1E322D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f331b 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
#D8E7D5
#BBD8B6
#9AC591
#78B16C
#61A055
#518547
#416B38
#324F2C
#1f331b
Base = 950Lightest = 50 · #F6F9F6Darkest = 950 · #1f331b
:root {
  --brand-50: #F6F9F6;
  --brand-100: #EDF3EC;
  --brand-200: #D8E7D5;
  --brand-300: #BBD8B6;
  --brand-400: #9AC591;
  --brand-500: #78B16C;
  --brand-600: #61A055;
  --brand-700: #518547;
  --brand-800: #416B38;
  --brand-900: #324F2C;
  --brand-950: #1f331b;
  --brand: #1f331b;
  --brand-ink: #ffffff;
}

Colors that work with #1f331b

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#F6FAF5
Tinted page background
Border#CEE3CA
Hairlines and dividers
Muted text#5B964F
Captions on the surface
Accent#291935
Second voice, not a rival
Dark variant#33532C
Hover, pressed, headers
Light variant#F0F6EE
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 #1f331b

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#2F1B33
Analogous left#2B331B
Analogous right#1B3323
Split-complement 1#231B33
Split-complement 2#331B2B
Triadic 1#1B1F33
Triadic 2#331B1F
Tetradic#1B2B33

RGB percentages

Red12.2%
Green20.0%
Blue10.6%

CMYK percentages

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

Color previews

#1f331b text on a black background

contrast 1.55:1

Card sample

#1f331b text on a white background

contrast 13.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f331b

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.

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

#1f331b, answered

What color is #1f331b?

#1f331b is a deep soft green, closest to Dark Slate Gray (ΔE2000 15). It sits at 110° on the hue wheel with 31% saturation and 15% lightness, which reads as neutral.

What is the RGB value of #1f331b?

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

Is #1f331b a light or a dark color?

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

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

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

What is the complementary color of #1f331b?

#2F1B33 sits directly opposite on the wheel. Softer options are the split-complements #231B33 and #331B2B, which give the same contrast with far less vibration.

What colors go well with #1f331b?

For interface work: #F6FAF5 as the surface, #CEE3CA for borders, #5B964F for secondary text, #291935 as an accent and #33532C for hover and pressed states. For a palette, the analogous pair #2B331B and #1B3323 stays calm, while #2F1B33 is the loudest partner.

What is #1f331b in CMYK for printing?

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

Is #1f331b 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 #28331B; nudged cooler, #1A341F.

Work with #1f331b in the Color Lab