Skip to content

#1f482d

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

RGB
31, 72, 45
HSL
141°, 40%, 20%
CMYK
57, 0, 38, 72
Luminance
0.0512

At a glance

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

Hex
#1f482d
Hue
141°
green
Saturation
40%
soft
Lightness
20%
deep
Brightness
28%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0512
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Soft
Best ink
White
10.38:1
Closest name
Dark Slate Gray
ΔE2000 12.9
Where it sits
Hue141° of 360°
Saturation40%
Lightness20%
Temperature
Warm ← → Cool71% 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#1f482d
RGBrgb(31, 72, 45)
HSLhsl(141, 40%, 20%)
CMYKcmyk(57%, 0%, 38%, 72%)
LABlab(27.1 -21.6 11.9)
LCHlch(27.1 24.7 151.1)
OKLCHoklch(0.364 0.066 152.9)
Decimal2050093
Display P3color(display-p3 0.122 0.282 0.176)

Copy-ready code

/* CSS */
color: #1f482d;
background-color: #1f482d;
/* Tailwind (arbitrary) */
class="text-[#1f482d] bg-[#1f482d]"
/* SCSS */
$brand: #1f482d;
/* SwiftUI */
Color(red: 0.122, green: 0.282, blue: 0.176)
/* Android */
Color.parseColor("#1f482d")
/* Flutter */
Color(0xFF1F482D)
/* Python / OpenCV (BGR) */
(45, 72, 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 #1f482d · 10.38:1
Use #ffffffAAA at every size.
Aa
White text · 10.38:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.02:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1f482d as text scores 10.38:1 on white and 2.02:1 on black.

Accessibility — WCAG contrast

Aa
#1f482d on white: 10.38:1
AA ✓ pass · AA-large · AAA
Aa
#1f482d on black: 2.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #48422B
deuteranopia · #423E2F
tritanopia · #154741

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f482d is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5FAF7
#EBF4EE
#D2E9DA
#B1DDC0
#89CCA0
#62BB81
#4AAB6B
#3D8F59
#317247
#1f482d
#183422
Base = 900Lightest = 50 · #F5FAF7Darkest = 950 · #183422
:root {
  --brand-50: #F5FAF7;
  --brand-100: #EBF4EE;
  --brand-200: #D2E9DA;
  --brand-300: #B1DDC0;
  --brand-400: #89CCA0;
  --brand-500: #62BB81;
  --brand-600: #4AAB6B;
  --brand-700: #3D8F59;
  --brand-800: #317247;
  --brand-900: #1f482d;
  --brand-950: #183422;
  --brand: #1f482d;
  --brand-ink: #ffffff;
}

Colors that work with #1f482d

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#C6E6D1
Hairlines and dividers
Muted text#4B9B66
Captions on the surface
Accent#4A1D46
Second voice, not a rival
Dark variant#265938
Hover, pressed, headers
Light variant#EDF7F1
Selected rows, tints
Dark surface#142419
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 #1f482d

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#481F3A
Analogous left#26481F
Analogous right#1F4842
Split-complement 1#421F48
Split-complement 2#481F26
Triadic 1#2D1F48
Triadic 2#482D1F
Tetradic#1F2648

RGB percentages

Red12.2%
Green28.2%
Blue17.6%

CMYK percentages

Cyan56.9%
Magenta0.0%
Yellow37.5%
Key (black)71.8%

Color previews

#1f482d text on a black background

contrast 2.02:1

Card sample

#1f482d text on a white background

contrast 10.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f482d

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.

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

#1f482d, answered

What color is #1f482d?

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

What is the RGB value of #1f482d?

rgb(31, 72, 45) — 31 red, 72 green and 45 blue out of 255, or 12.2% / 28.2% / 17.6% by channel.

Is #1f482d a light or a dark color?

It is a dark color. Relative luminance is 0.0512 and perceived brightness is 23%, so white text on it reaches 10.38:1.

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

White. It scores 10.38:1 against #1f482d, versus 2.02:1 for black — AAA at any size.

What is the complementary color of #1f482d?

#481F3A sits directly opposite on the wheel. Softer options are the split-complements #421F48 and #481F26, which give the same contrast with far less vibration.

What colors go well with #1f482d?

For interface work: #F4FAF6 as the surface, #C6E6D1 for borders, #4B9B66 for secondary text, #4A1D46 as an accent and #265938 for hover and pressed states. For a palette, the analogous pair #26481F and #1F4842 stays calm, while #481F3A is the loudest partner.

What is #1f482d in CMYK for printing?

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

Is #1f482d warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #20481F; nudged cooler, #1E493C.

Work with #1f482d in the Color Lab