Skip to content

#223a21

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

RGB
34, 58, 33
HSL
118°, 28%, 18%
CMYK
41, 0, 43, 77
Luminance
0.0348

At a glance

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

Hex
#223a21
Hue
118°
green
Saturation
28%
soft
Lightness
18%
deep
Brightness
23%
HSV value
Perceived
19%
weighted brightness
Luminance
0.0348
WCAG relative
Temperature
Cool
59/100 cool
Color family
Green
Tone
Soft
Best ink
White
12.39:1
Closest name
Dark Slate Gray
ΔE2000 13.9
Where it sits
Hue118° of 360°
Saturation28%
Lightness18%
Temperature
Warm ← → Cool59% 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#223a21
RGBrgb(34, 58, 33)
HSLhsl(118, 28%, 18%)
CMYKcmyk(41%, 0%, 43%, 77%)
LABlab(21.9 -15.5 12.7)
LCHlch(21.9 20.0 140.8)
OKLCHoklch(0.321 0.053 143.3)
Decimal2243105
Display P3color(display-p3 0.133 0.227 0.129)

Copy-ready code

/* CSS */
color: #223a21;
background-color: #223a21;
/* Tailwind (arbitrary) */
class="text-[#223a21] bg-[#223a21]"
/* SCSS */
$brand: #223a21;
/* SwiftUI */
Color(red: 0.133, green: 0.227, blue: 0.129)
/* Android */
Color.parseColor("#223a21")
/* Flutter */
Color(0xFF223A21)
/* Python / OpenCV (BGR) */
(33, 58, 34)

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

Accessibility — WCAG contrast

Aa
#223a21 on white: 12.39:1
AA ✓ pass · AA-large · AAA
Aa
#223a21 on black: 1.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B361F
deuteranopia · #373322
tritanopia · #203934

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #223a21 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
#D6E6D6
#B9D6B7
#96C294
#72AE70
#5B9C59
#4C824A
#3D683B
#2F4D2E
#223a21
Base = 950Lightest = 50 · #F6F9F6Darkest = 950 · #223a21
:root {
  --brand-50: #F6F9F6;
  --brand-100: #EDF3EC;
  --brand-200: #D6E6D6;
  --brand-300: #B9D6B7;
  --brand-400: #96C294;
  --brand-500: #72AE70;
  --brand-600: #5B9C59;
  --brand-700: #4C824A;
  --brand-800: #3D683B;
  --brand-900: #2F4D2E;
  --brand-950: #223a21;
  --brand: #223a21;
  --brand-ink: #ffffff;
}

Colors that work with #223a21

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#F5F9F5
Tinted page background
Border#CCE1CB
Hairlines and dividers
Muted text#569253
Captions on the surface
Accent#331F3C
Second voice, not a rival
Dark variant#30512E
Hover, pressed, headers
Light variant#EFF6EF
Selected rows, tints
Dark surface#152414
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 #223a21

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#39213A
Analogous left#2E3A21
Analogous right#213A2C
Split-complement 1#2C213A
Split-complement 2#3A212E
Triadic 1#21223A
Triadic 2#3A2122
Tetradic#212E3A

RGB percentages

Red13.3%
Green22.7%
Blue12.9%

CMYK percentages

Cyan41.4%
Magenta0.0%
Yellow43.1%
Key (black)77.3%

Color previews

#223a21 text on a black background

contrast 1.70:1

Card sample

#223a21 text on a white background

contrast 12.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #223a21;
Background color
Panel with #223a21 background
background-color: #223a21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #223a21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(34, 58, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(34, 58, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #223a21;
background: linear-gradient(135deg, #223a21, #213A31);

Monochromatic scale

Palettes built from #223a21

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.

#223a21 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.

#223a21, answered

What color is #223a21?

#223a21 is a deep soft green, closest to Dark Slate Gray (ΔE2000 13.9). It sits at 118° on the hue wheel with 28% saturation and 18% lightness, which reads as cool.

What is the RGB value of #223a21?

rgb(34, 58, 33) — 34 red, 58 green and 33 blue out of 255, or 13.3% / 22.7% / 12.9% by channel.

Is #223a21 a light or a dark color?

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

Should I use black or white text on #223a21?

White. It scores 12.39:1 against #223a21, versus 1.70:1 for black — AAA at any size.

What is the complementary color of #223a21?

#39213A sits directly opposite on the wheel. Softer options are the split-complements #2C213A and #3A212E, which give the same contrast with far less vibration.

What colors go well with #223a21?

For interface work: #F5F9F5 as the surface, #CCE1CB for borders, #569253 for secondary text, #331F3C as an accent and #30512E for hover and pressed states. For a palette, the analogous pair #2E3A21 and #213A2C stays calm, while #39213A is the loudest partner.

What is #223a21 in CMYK for printing?

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

Is #223a21 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2B3A21; nudged cooler, #203B29.

Work with #223a21 in the Color Lab