Republican Ed Gillespie is now narrowly leading the Virginia gubernatorial race by 3 points, according to a new poll, just three days before Tuesday's election.

The new poll of likely Virginia voters by Republican firm Optimus/Firehouse Strategies over Wednesday and Thursday shows Gillespie leading his Democratic opponent Ralph Northam by 40.4 percent to 37.4 percent. His lead is just outside the poll's margin of error.

Recent polls have suggested a late-game comeback for Gillespie, who trailed Northam by a small margin for recent months of the race, with a Friday poll showing the two locked in a dead heat at 47 percent apiece.

ADVERTISEMENT

However, Northam is predicted to win by a 1.5 point margin if voter turnout mirrors 2016 levels, the poll said, citing "volatile" party composition. The poll used a model based on 2013 voter turnout to predict a Gillespie win.

An average of major polls still shows Northam with a slight lead of 1.2 points, which marks a steep decline over recent weeks from averages favoring the Democrat by over 3 points.

The contentious Virginia election has invited the support of national political figures such as former Presidents Barack Obama Barack Hussein ObamaObama calls on Senate not to fill Ginsburg's vacancy until after election Senate Republicans face tough decision on replacing Ginsburg Cruz: Trump should nominate a Supreme Court justice next week MORE and George W. Bush, each stumping and fundraising for their party's nominees.

Democrats have unleashed a series of biting attack ads against Gillespie, linking him to President Donald Trump Donald John TrumpObama calls on Senate not to fill Ginsburg's vacancy until after election Planned Parenthood: 'The fate of our rights' depends on Ginsburg replacement Progressive group to spend M in ad campaign on Supreme Court vacancy MORE and bashing him for his response to the violent white nationalist rally in Charlottesville, Va., in August.

Northam has also received criticism among party members and progressive voter groups for his break with party rhetoric on so-called sanctuary cities, which do not comply with federal immigration laws, saying he would sign legislation banning them "if that bill comes to my desk."

The Optimus survey interviewed 1,600 Virginians based on voter history, with a margin of error of plus or minus 2.4 percentage points.