Skip to content

#173b21

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

RGB
23, 59, 33
HSL
137°, 44%, 16%
CMYK
61, 0, 44, 77
Luminance
0.0342

At a glance

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

Hex
#173b21
Hue
137°
green
Saturation
44%
soft
Lightness
16%
deep
Brightness
23%
HSV value
Perceived
19%
weighted brightness
Luminance
0.0342
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Soft
Best ink
White
12.47:1
Closest name
Dark Slate Gray
ΔE2000 14.3
Where it sits
Hue137° of 360°
Saturation44%
Lightness16%
Temperature
Warm ← → Cool69% 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#173b21
RGBrgb(23, 59, 33)
HSLhsl(137, 44%, 16%)
CMYKcmyk(61%, 0%, 44%, 77%)
LABlab(21.6 -20.0 12.3)
LCHlch(21.6 23.5 148.4)
OKLCHoklch(0.318 0.062 150.5)
Decimal1522465
Display P3color(display-p3 0.090 0.231 0.129)

Copy-ready code

/* CSS */
color: #173b21;
background-color: #173b21;
/* Tailwind (arbitrary) */
class="text-[#173b21] bg-[#173b21]"
/* SCSS */
$brand: #173b21;
/* SwiftUI */
Color(red: 0.090, green: 0.231, blue: 0.129)
/* Android */
Color.parseColor("#173b21")
/* Flutter */
Color(0xFF173B21)
/* Python / OpenCV (BGR) */
(33, 59, 23)

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

Accessibility — WCAG contrast

Aa
#173b21 on white: 12.47:1
AA ✓ pass · AA-large · AAA
Aa
#173b21 on black: 1.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B361F
deuteranopia · #363323
tritanopia · #0F3A34

Color scale — 50 to 950

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

#F5FAF6
#EAF5ED
#D1EBD8
#AEE0BC
#86D09A
#5EC079
#45B063
#399352
#2E7542
#245632
#173b21
Base = 950Lightest = 50 · #F5FAF6Darkest = 950 · #173b21
:root {
  --brand-50: #F5FAF6;
  --brand-100: #EAF5ED;
  --brand-200: #D1EBD8;
  --brand-300: #AEE0BC;
  --brand-400: #86D09A;
  --brand-500: #5EC079;
  --brand-600: #45B063;
  --brand-700: #399352;
  --brand-800: #2E7542;
  --brand-900: #245632;
  --brand-950: #173b21;
  --brand: #173b21;
  --brand-ink: #ffffff;
}

Colors that work with #173b21

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#F4FAF6
Tinted page background
Border#C4E8CE
Hairlines and dividers
Muted text#4B9B61
Captions on the surface
Accent#3D153C
Second voice, not a rival
Dark variant#245C33
Hover, pressed, headers
Light variant#EDF8F0
Selected rows, tints
Dark surface#142418
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 #173b21

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#3B1731
Analogous left#1F3B17
Analogous right#173B33
Split-complement 1#33173B
Split-complement 2#3B171F
Triadic 1#21173B
Triadic 2#3B2117
Tetradic#171F3B

RGB percentages

Red9.0%
Green23.1%
Blue12.9%

CMYK percentages

Cyan61.0%
Magenta0.0%
Yellow44.1%
Key (black)76.9%

Color previews

#173b21 text on a black background

contrast 1.68:1

Card sample

#173b21 text on a white background

contrast 12.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #173b21;
Background color
Panel with #173b21 background
background-color: #173b21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #173b21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(23, 59, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 59, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #173b21;
background: linear-gradient(135deg, #173b21, #173B39);

Monochromatic scale

Palettes built from #173b21

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.

#173b21 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.

#173b21, answered

What color is #173b21?

#173b21 is a deep soft green, closest to Dark Slate Gray (ΔE2000 14.3). It sits at 137° on the hue wheel with 44% saturation and 16% lightness, which reads as cool.

What is the RGB value of #173b21?

rgb(23, 59, 33) — 23 red, 59 green and 33 blue out of 255, or 9% / 23.1% / 12.9% by channel.

Is #173b21 a light or a dark color?

It is a dark color. Relative luminance is 0.0342 and perceived brightness is 19%, so white text on it reaches 12.47:1.

Should I use black or white text on #173b21?

White. It scores 12.47:1 against #173b21, versus 1.68:1 for black — AAA at any size.

What is the complementary color of #173b21?

#3B1731 sits directly opposite on the wheel. Softer options are the split-complements #33173B and #3B171F, which give the same contrast with far less vibration.

What colors go well with #173b21?

For interface work: #F4FAF6 as the surface, #C4E8CE for borders, #4B9B61 for secondary text, #3D153C as an accent and #245C33 for hover and pressed states. For a palette, the analogous pair #1F3B17 and #173B33 stays calm, while #3B1731 is the loudest partner.

What is #173b21 in CMYK for printing?

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

Is #173b21 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1A3B17; nudged cooler, #163C2F.

Work with #173b21 in the Color Lab