Skip to content

#02471f

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

RGB
2, 71, 31
HSL
145°, 95%, 14%
CMYK
97, 0, 56, 72
Luminance
0.0462

At a glance

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

Hex
#02471f
Hue
145°
green
Saturation
95%
electric
Lightness
14%
deep
Brightness
28%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0462
WCAG relative
Temperature
Cool
73/100 cool
Color family
Green
Tone
Electric
Best ink
White
10.92:1
Closest name
Dark Green
ΔE2000 12.5
Where it sits
Hue145° of 360°
Saturation95%
Lightness14%
Temperature
Warm ← → Cool73% 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#02471f
RGBrgb(2, 71, 31)
HSLhsl(145, 95%, 14%)
CMYKcmyk(97%, 0%, 56%, 72%)
LABlab(25.6 -30.2 18.5)
LCHlch(25.6 35.4 148.5)
OKLCHoklch(0.349 0.092 150.9)
Decimal149279
Display P3color(display-p3 0.008 0.278 0.122)

Copy-ready code

/* CSS */
color: #02471f;
background-color: #02471f;
/* Tailwind (arbitrary) */
class="text-[#02471f] bg-[#02471f]"
/* SCSS */
$brand: #02471f;
/* SwiftUI */
Color(red: 0.008, green: 0.278, blue: 0.122)
/* Android */
Color.parseColor("#02471f")
/* Flutter */
Color(0xFF02471F)
/* Python / OpenCV (BGR) */
(31, 71, 2)

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

Accessibility — WCAG contrast

Aa
#02471f on white: 10.92:1
AA ✓ pass · AA-large · AAA
Aa
#02471f on black: 1.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #47401C
deuteranopia · #403B22
tritanopia · #00463E

Color scale — 50 to 950

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

#F1FDF6
#E4FBEE
#C2FAD9
#92FCBE
#5BFA9E
#25F97E
#07EE68
#06C657
#049F45
#087235
#02471f
Base = 950Lightest = 50 · #F1FDF6Darkest = 950 · #02471f
:root {
  --brand-50: #F1FDF6;
  --brand-100: #E4FBEE;
  --brand-200: #C2FAD9;
  --brand-300: #92FCBE;
  --brand-400: #5BFA9E;
  --brand-500: #25F97E;
  --brand-600: #07EE68;
  --brand-700: #06C657;
  --brand-800: #049F45;
  --brand-900: #087235;
  --brand-950: #02471f;
  --brand: #02471f;
  --brand-ink: #ffffff;
}

Colors that work with #02471f

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#C0EDD3
Hairlines and dividers
Muted text#4B9B6C
Captions on the surface
Accent#48013C
Second voice, not a rival
Dark variant#047C36
Hover, pressed, headers
Light variant#E6FEF0
Selected rows, tints
Dark surface#14241B
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 #02471f

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#47022A
Analogous left#084702
Analogous right#024741
Split-complement 1#410247
Split-complement 2#470208
Triadic 1#1F0247
Triadic 2#471F02
Tetradic#020847

RGB percentages

Red0.8%
Green27.8%
Blue12.2%

CMYK percentages

Cyan97.2%
Magenta0.0%
Yellow56.3%
Key (black)72.2%

Color previews

#02471f text on a black background

contrast 1.92:1

Card sample

#02471f text on a white background

contrast 10.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #02471f;
Background color
Panel with #02471f background
background-color: #02471f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 71, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 71, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #02471f;
background: linear-gradient(135deg, #02471f, #024147);

Monochromatic scale

Palettes built from #02471f

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.

#02471f 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.

#02471f, answered

What color is #02471f?

#02471f is a deep electric green, closest to Dark Green (ΔE2000 12.5). It sits at 145° on the hue wheel with 95% saturation and 14% lightness, which reads as cool.

What is the RGB value of #02471f?

rgb(2, 71, 31) — 2 red, 71 green and 31 blue out of 255, or 0.8% / 27.8% / 12.2% by channel.

Is #02471f a light or a dark color?

It is a dark color. Relative luminance is 0.0462 and perceived brightness is 22%, so white text on it reaches 10.92:1.

Should I use black or white text on #02471f?

White. It scores 10.92:1 against #02471f, versus 1.92:1 for black — AAA at any size.

What is the complementary color of #02471f?

#47022A sits directly opposite on the wheel. Softer options are the split-complements #410247 and #470208, which give the same contrast with far less vibration.

What colors go well with #02471f?

For interface work: #F4FAF7 as the surface, #C0EDD3 for borders, #4B9B6C for secondary text, #48013C as an accent and #047C36 for hover and pressed states. For a palette, the analogous pair #084702 and #024741 stays calm, while #47022A is the loudest partner.

What is #02471f in CMYK for printing?

cmyk(97%, 0%, 56%, 72%). 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 #02471f warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #024706; nudged cooler, #014839.

Work with #02471f in the Color Lab