Skip to content

#2a321f

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

RGB
42, 50, 31
HSL
85°, 24%, 16%
CMYK
16, 0, 38, 80
Luminance
0.0287

At a glance

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

Hex
#2a321f
Hue
85°
green
Saturation
24%
soft
Lightness
16%
deep
Brightness
20%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0287
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Green
Tone
Soft
Best ink
White
13.34:1
Closest name
Dark Slate Gray
ΔE2000 14.9
Where it sits
Hue85° of 360°
Saturation24%
Lightness16%
Temperature
Warm ← → Cool47% 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#2a321f
RGBrgb(42, 50, 31)
HSLhsl(85, 24%, 16%)
CMYKcmyk(16%, 0%, 38%, 80%)
LABlab(19.5 -7.6 11.0)
LCHlch(19.5 13.4 124.7)
OKLCHoklch(0.304 0.034 126.9)
Decimal2765343
Display P3color(display-p3 0.165 0.196 0.122)

Copy-ready code

/* CSS */
color: #2a321f;
background-color: #2a321f;
/* Tailwind (arbitrary) */
class="text-[#2a321f] bg-[#2a321f]"
/* SCSS */
$brand: #2a321f;
/* SwiftUI */
Color(red: 0.165, green: 0.196, blue: 0.122)
/* Android */
Color.parseColor("#2a321f")
/* Flutter */
Color(0xFF2A321F)
/* Python / OpenCV (BGR) */
(31, 50, 42)

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

Accessibility — WCAG contrast

Aa
#2a321f on white: 13.34:1
AA ✓ pass · AA-large · AAA
Aa
#2a321f on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #34301E
deuteranopia · #332F20
tritanopia · #2B302D

Color scale — 50 to 950

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

#F8F9F6
#F0F3ED
#DFE5D7
#C9D4BA
#AEBF97
#93A974
#7F975E
#6A7E4E
#55653E
#3F4A30
#2a321f
Base = 950Lightest = 50 · #F8F9F6Darkest = 950 · #2a321f
:root {
  --brand-50: #F8F9F6;
  --brand-100: #F0F3ED;
  --brand-200: #DFE5D7;
  --brand-300: #C9D4BA;
  --brand-400: #AEBF97;
  --brand-500: #93A974;
  --brand-600: #7F975E;
  --brand-700: #6A7E4E;
  --brand-800: #55653E;
  --brand-900: #3F4A30;
  --brand-950: #2a321f;
  --brand: #2a321f;
  --brand-ink: #ffffff;
}

Colors that work with #2a321f

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#F8F9F6
Tinted page background
Border#D8E0CD
Hairlines and dividers
Muted text#778E58
Captions on the surface
Accent#211D34
Second voice, not a rival
Dark variant#424F31
Hover, pressed, headers
Light variant#F3F5EF
Selected rows, tints
Dark surface#1D2315
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 #2a321f

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#271F32
Analogous left#32311F
Analogous right#21321F
Split-complement 1#1F2132
Split-complement 2#311F32
Triadic 1#1F2A32
Triadic 2#321F2A
Tetradic#1F3231

RGB percentages

Red16.5%
Green19.6%
Blue12.2%

CMYK percentages

Cyan16.0%
Magenta0.0%
Yellow38.0%
Key (black)80.4%

Color previews

#2a321f text on a black background

contrast 1.57:1

Card sample

#2a321f text on a white background

contrast 13.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2a321f;
Background color
Panel with #2a321f background
background-color: #2a321f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 50, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 50, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a321f;
background: linear-gradient(135deg, #2a321f, #1F3221);

Monochromatic scale

Palettes built from #2a321f

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.

#2a321f 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.

#2a321f, answered

What color is #2a321f?

#2a321f is a deep soft green, closest to Dark Slate Gray (ΔE2000 14.9). It sits at 85° on the hue wheel with 24% saturation and 16% lightness, which reads as neutral.

What is the RGB value of #2a321f?

rgb(42, 50, 31) — 42 red, 50 green and 31 blue out of 255, or 16.5% / 19.6% / 12.2% by channel.

Is #2a321f a light or a dark color?

It is a dark color. Relative luminance is 0.0287 and perceived brightness is 18%, so white text on it reaches 13.34:1.

Should I use black or white text on #2a321f?

White. It scores 13.34:1 against #2a321f, versus 1.57:1 for black — AAA at any size.

What is the complementary color of #2a321f?

#271F32 sits directly opposite on the wheel. Softer options are the split-complements #1F2132 and #311F32, which give the same contrast with far less vibration.

What colors go well with #2a321f?

For interface work: #F8F9F6 as the surface, #D8E0CD for borders, #778E58 for secondary text, #211D34 as an accent and #424F31 for hover and pressed states. For a palette, the analogous pair #32311F and #21321F stays calm, while #271F32 is the loudest partner.

What is #2a321f in CMYK for printing?

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

Is #2a321f warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #31321F; nudged cooler, #23331E.

Work with #2a321f in the Color Lab