Skip to content

#1fa310

a dark, electric green · cool · closest name: Forest Green

RGB
31, 163, 16
HSL
114°, 82%, 35%
CMYK
81, 0, 90, 36
Luminance
0.2652

At a glance

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

Hex
#1fa310
Hue
114°
green
Saturation
82%
electric
Lightness
35%
dark
Brightness
64%
HSV value
Perceived
49%
weighted brightness
Luminance
0.2652
WCAG relative
Temperature
Cool
60/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.30:1
Closest name
Forest Green
ΔE2000 8.4
Where it sits
Hue114° of 360°
Saturation82%
Lightness35%
Temperature
Warm ← → Cool60% 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#1fa310
RGBrgb(31, 163, 16)
HSLhsl(114, 82%, 35%)
CMYKcmyk(81%, 0%, 90%, 36%)
LABlab(58.5 -58.7 57.4)
LCHlch(58.5 82.2 135.6)
OKLCHoklch(0.623 0.203 141.9)
Decimal2073360
Display P3color(display-p3 0.122 0.639 0.063)

Copy-ready code

/* CSS */
color: #1fa310;
background-color: #1fa310;
/* Tailwind (arbitrary) */
class="text-[#1fa310] bg-[#1fa310]"
/* SCSS */
$brand: #1fa310;
/* SwiftUI */
Color(red: 0.122, green: 0.639, blue: 0.063)
/* Android */
Color.parseColor("#1fa310")
/* Flutter */
Color(0xFF1FA310)
/* Python / OpenCV (BGR) */
(16, 163, 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#000000 on #1fa310 · 6.30:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.33:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.30:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #1fa310 as text scores 3.33:1 on white and 6.30:1 on black.

Accessibility — WCAG contrast

Aa
#1fa310 on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#1fa310 on black: 6.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A79300
deuteranopia · #998927
tritanopia · #009E8A

Color scale — 50 to 950

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

#F3FCF2
#E8FAE6
#CBF6C6
#A2F599
#74F066
#45EB33
#2ADF16
#23BA12
#1fa310
#186B0F
#0F4309
Base = 800Lightest = 50 · #F3FCF2Darkest = 950 · #0F4309
:root {
  --brand-50: #F3FCF2;
  --brand-100: #E8FAE6;
  --brand-200: #CBF6C6;
  --brand-300: #A2F599;
  --brand-400: #74F066;
  --brand-500: #45EB33;
  --brand-600: #2ADF16;
  --brand-700: #23BA12;
  --brand-800: #1fa310;
  --brand-900: #186B0F;
  --brand-950: #0F4309;
  --brand: #1fa310;
  --brand-ink: #000000;
}

Colors that work with #1fa310

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F5FAF4
Tinted page background
Border#C4EDC0
Hairlines and dividers
Muted text#539B4B
Captions on the surface
Accent#700CA7
Second voice, not a rival
Dark variant#16740B
Hover, pressed, headers
Light variant#EAFDE8
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 #1fa310

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • 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
  • Small text on white — under 4.5:1
  • 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#9410A3
Analogous left#68A310
Analogous right#10A34B
Split-complement 1#4B10A3
Split-complement 2#A31068
Triadic 1#101FA3
Triadic 2#A3101F
Tetradic#1068A3

RGB percentages

Red12.2%
Green63.9%
Blue6.3%

CMYK percentages

Cyan81.0%
Magenta0.0%
Yellow90.2%
Key (black)36.1%

Color previews

#1fa310 text on a black background

contrast 6.30:1

Card sample

#1fa310 text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 163, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 163, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1fa310;
background: linear-gradient(135deg, #1fa310, #10A363);

Monochromatic scale

Palettes built from #1fa310

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.

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

#1fa310, answered

What color is #1fa310?

#1fa310 is a dark electric green, closest to Forest Green (ΔE2000 8.4). It sits at 114° on the hue wheel with 82% saturation and 35% lightness, which reads as cool.

What is the RGB value of #1fa310?

rgb(31, 163, 16) — 31 red, 163 green and 16 blue out of 255, or 12.2% / 63.9% / 6.3% by channel.

Is #1fa310 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2652 and perceived brightness is 49%, so black text on it reaches 6.30:1.

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

Black. It scores 6.30:1 against #1fa310, versus 3.33:1 for white — AA at any size.

What is the complementary color of #1fa310?

#9410A3 sits directly opposite on the wheel. Softer options are the split-complements #4B10A3 and #A31068, which give the same contrast with far less vibration.

What colors go well with #1fa310?

For interface work: #F5FAF4 as the surface, #C4EDC0 for borders, #539B4B for secondary text, #700CA7 as an accent and #16740B for hover and pressed states. For a palette, the analogous pair #68A310 and #10A34B stays calm, while #9410A3 is the loudest partner.

What is #1fa310 in CMYK for printing?

cmyk(81%, 0%, 90%, 36%). 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 #1fa310 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #55A310; nudged cooler, #0EA536.

Work with #1fa310 in the Color Lab