Skip to content

#045d2f

a deep, electric green · cool · closest name: Dark Green

RGB
4, 93, 47
HSL
149°, 92%, 19%
CMYK
96, 0, 50, 64
Luminance
0.0806

At a glance

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

Hex
#045d2f
Hue
149°
green
Saturation
92%
electric
Lightness
19%
deep
Brightness
36%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0806
WCAG relative
Temperature
Cool
75/100 cool
Color family
Green
Tone
Electric
Best ink
White
8.04:1
Closest name
Dark Green
ΔE2000 8.8
Where it sits
Hue149° of 360°
Saturation92%
Lightness19%
Temperature
Warm ← → Cool75% 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#045d2f
RGBrgb(4, 93, 47)
HSLhsl(149, 92%, 19%)
CMYKcmyk(96%, 0%, 50%, 64%)
LABlab(34.1 -35.4 19.9)
LCHlch(34.1 40.6 150.7)
OKLCHoklch(0.420 0.107 152.8)
Decimal285999
Display P3color(display-p3 0.016 0.365 0.184)

Copy-ready code

/* CSS */
color: #045d2f;
background-color: #045d2f;
/* Tailwind (arbitrary) */
class="text-[#045d2f] bg-[#045d2f]"
/* SCSS */
$brand: #045d2f;
/* SwiftUI */
Color(red: 0.016, green: 0.365, blue: 0.184)
/* Android */
Color.parseColor("#045d2f")
/* Flutter */
Color(0xFF045D2F)
/* Python / OpenCV (BGR) */
(47, 93, 4)

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

Accessibility — WCAG contrast

Aa
#045d2f on white: 8.04:1
AA ✓ pass · AA-large · AAA
Aa
#045d2f on black: 2.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5D542B
deuteranopia · #544E32
tritanopia · #005C52

Color scale — 50 to 950

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

#F2FDF7
#E4FBEF
#C3F9DD
#93FAC5
#5EF8A8
#28F68B
#0AEB77
#08C463
#079D4F
#0A713B
#045d2f
Base = 950Lightest = 50 · #F2FDF7Darkest = 950 · #045d2f
:root {
  --brand-50: #F2FDF7;
  --brand-100: #E4FBEF;
  --brand-200: #C3F9DD;
  --brand-300: #93FAC5;
  --brand-400: #5EF8A8;
  --brand-500: #28F68B;
  --brand-600: #0AEB77;
  --brand-700: #08C463;
  --brand-800: #079D4F;
  --brand-900: #0A713B;
  --brand-950: #045d2f;
  --brand: #045d2f;
  --brand-ink: #ffffff;
}

Colors that work with #045d2f

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#F4FAF7
Tinted page background
Border#C0EDD5
Hairlines and dividers
Muted text#4B9B71
Captions on the surface
Accent#5F0249
Second voice, not a rival
Dark variant#057A3E
Hover, pressed, headers
Light variant#E7FEF2
Selected rows, tints
Dark surface#14241C
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 #045d2f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#5D0432
Analogous left#055D04
Analogous right#045D5B
Split-complement 1#5B045D
Split-complement 2#5D0405
Triadic 1#2F045D
Triadic 2#5D2F04
Tetradic#04055D

RGB percentages

Red1.6%
Green36.5%
Blue18.4%

CMYK percentages

Cyan95.7%
Magenta0.0%
Yellow49.5%
Key (black)63.5%

Color previews

#045d2f text on a black background

contrast 2.61:1

Card sample

#045d2f text on a white background

contrast 8.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #045d2f;
Background color
Panel with #045d2f background
background-color: #045d2f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(4, 93, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(4, 93, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #045d2f;
background: linear-gradient(135deg, #045d2f, #04505D);

Monochromatic scale

Palettes built from #045d2f

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.

#045d2f 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#045d2f, answered

What color is #045d2f?

#045d2f is a deep electric green, closest to Dark Green (ΔE2000 8.8). It sits at 149° on the hue wheel with 92% saturation and 19% lightness, which reads as cool.

What is the RGB value of #045d2f?

rgb(4, 93, 47) — 4 red, 93 green and 47 blue out of 255, or 1.6% / 36.5% / 18.4% by channel.

Is #045d2f a light or a dark color?

It is a dark color. Relative luminance is 0.0806 and perceived brightness is 29%, so white text on it reaches 8.04:1.

Should I use black or white text on #045d2f?

White. It scores 8.04:1 against #045d2f, versus 2.61:1 for black — AAA at any size.

What is the complementary color of #045d2f?

#5D0432 sits directly opposite on the wheel. Softer options are the split-complements #5B045D and #5D0405, which give the same contrast with far less vibration.

What colors go well with #045d2f?

For interface work: #F4FAF7 as the surface, #C0EDD5 for borders, #4B9B71 for secondary text, #5F0249 as an accent and #057A3E for hover and pressed states. For a palette, the analogous pair #055D04 and #045D5B stays calm, while #5D0432 is the loudest partner.

What is #045d2f in CMYK for printing?

cmyk(96%, 0%, 50%, 64%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #045d2f warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #045D0E; nudged cooler, #035E50.

Work with #045d2f in the Color Lab