Skip to content

#1d2f21

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

RGB
29, 47, 33
HSL
133°, 24%, 15%
CMYK
38, 0, 30, 82
Luminance
0.0240

At a glance

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

Hex
#1d2f21
Hue
133°
green
Saturation
24%
soft
Lightness
15%
deep
Brightness
18%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0240
WCAG relative
Temperature
Cool
62/100 cool
Color family
Green
Tone
Soft
Best ink
White
14.18:1
Closest name
Dark Slate Gray
ΔE2000 12.9
Where it sits
Hue133° of 360°
Saturation24%
Lightness15%
Temperature
Warm ← → Cool62% 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#1d2f21
RGBrgb(29, 47, 33)
HSLhsl(133, 24%, 15%)
CMYKcmyk(38%, 0%, 30%, 82%)
LABlab(17.5 -11.1 6.7)
LCHlch(17.5 13.0 148.9)
OKLCHoklch(0.285 0.035 150.7)
Decimal1912609
Display P3color(display-p3 0.114 0.184 0.129)

Copy-ready code

/* CSS */
color: #1d2f21;
background-color: #1d2f21;
/* Tailwind (arbitrary) */
class="text-[#1d2f21] bg-[#1d2f21]"
/* SCSS */
$brand: #1d2f21;
/* SwiftUI */
Color(red: 0.114, green: 0.184, blue: 0.129)
/* Android */
Color.parseColor("#1d2f21")
/* Flutter */
Color(0xFF1D2F21)
/* Python / OpenCV (BGR) */
(33, 47, 29)

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 #1d2f21 · 14.18:1
Use #ffffffAAA at every size.
Aa
White text · 14.18:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.48:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1d2f21 as text scores 14.18:1 on white and 1.48:1 on black.

Accessibility — WCAG contrast

Aa
#1d2f21 on white: 14.18:1
AA ✓ pass · AA-large · AAA
Aa
#1d2f21 on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2F2C20
deuteranopia · #2C2A22
tritanopia · #1A2E2B

Color scale — 50 to 950

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

#F6F9F7
#EDF3EE
#D7E5DA
#BAD4BF
#97BFA0
#74A980
#5D976A
#4E7E59
#3E6547
#304B36
#1d2f21
Base = 950Lightest = 50 · #F6F9F7Darkest = 950 · #1d2f21
:root {
  --brand-50: #F6F9F7;
  --brand-100: #EDF3EE;
  --brand-200: #D7E5DA;
  --brand-300: #BAD4BF;
  --brand-400: #97BFA0;
  --brand-500: #74A980;
  --brand-600: #5D976A;
  --brand-700: #4E7E59;
  --brand-800: #3E6547;
  --brand-900: #304B36;
  --brand-950: #1d2f21;
  --brand: #1d2f21;
  --brand-ink: #ffffff;
}

Colors that work with #1d2f21

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#F6F9F6
Tinted page background
Border#CDE0D1
Hairlines and dividers
Muted text#588E64
Captions on the surface
Accent#301B31
Second voice, not a rival
Dark variant#314F37
Hover, pressed, headers
Light variant#EFF5F1
Selected rows, tints
Dark surface#152318
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 #1d2f21

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#2F1D2B
Analogous left#222F1D
Analogous right#1D2F2A
Split-complement 1#2A1D2F
Split-complement 2#2F1D22
Triadic 1#211D2F
Triadic 2#2F211D
Tetradic#1D222F

RGB percentages

Red11.4%
Green18.4%
Blue12.9%

CMYK percentages

Cyan38.3%
Magenta0.0%
Yellow29.8%
Key (black)81.6%

Color previews

#1d2f21 text on a black background

contrast 1.48:1

Card sample

#1d2f21 text on a white background

contrast 14.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1d2f21

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.

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

#1d2f21, answered

What color is #1d2f21?

#1d2f21 is a deep soft green, closest to Dark Slate Gray (ΔE2000 12.9). It sits at 133° on the hue wheel with 24% saturation and 15% lightness, which reads as cool.

What is the RGB value of #1d2f21?

rgb(29, 47, 33) — 29 red, 47 green and 33 blue out of 255, or 11.4% / 18.4% / 12.9% by channel.

Is #1d2f21 a light or a dark color?

It is a dark color. Relative luminance is 0.0240 and perceived brightness is 16%, so white text on it reaches 14.18:1.

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

White. It scores 14.18:1 against #1d2f21, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #1d2f21?

#2F1D2B sits directly opposite on the wheel. Softer options are the split-complements #2A1D2F and #2F1D22, which give the same contrast with far less vibration.

What colors go well with #1d2f21?

For interface work: #F6F9F6 as the surface, #CDE0D1 for borders, #588E64 for secondary text, #301B31 as an accent and #314F37 for hover and pressed states. For a palette, the analogous pair #222F1D and #1D2F2A stays calm, while #2F1D2B is the loudest partner.

What is #1d2f21 in CMYK for printing?

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

Is #1d2f21 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #202F1D; nudged cooler, #1C3028.

Work with #1d2f21 in the Color Lab