DENVER (Reuters) - State lawmakers in Denver voted to pass and send to the governor on Wednesday a bill that would repeal Colorado’s death penalty, making it the latest of a growing number of states in recent years to abolish capital punishment.

Governor Jared Polis, a first-term Democrat, intends to sign the bill into law when it reaches his desk, his spokesman told Reuters via email on Tuesday.

The Colorado Senate adopted the measure in January. Final adoption of the bill in the House of Representatives came on a 38-27 vote, following earlier defeat of a House floor amendment that called for putting the question of repeal before voters in a statewide ballot measure.

Both chambers of the General Assembly are controlled by Democrats, although two Republican senators are co-sponsors of the measure.

Twenty-nine U.S. states, including Colorado, have the death penalty on their books, according to the National Conference of State Legislatures. Capital punishment also remains in the criminal code of the federal government and U.S. military justice system.

When the bill is enacted into law, Colorado will become the 22nd state since 2004 to abolish the death penalty by legislation or court action, according to the Washington-based Death Penalty Information Center, which tracks the issue.

Public support for capital punishment has ebbed considerably during that time, slipping to a 47-year low in 2019 as 60% of Americans expressed a preference for life imprisonment over execution as the severest form of punishment, the center said in a report in December, citing a Gallup poll.

One factor driving the decline has been the advent of more highly sophisticated DNA technology that has helped exonerate individuals wrongly convicted of capital crimes.

Supporters of repeal cited the irrevocable nature of capital punishment, as well as evidence that the death penalty is often imposed disproportionately on minorities and the poor.

“The death penalty is immoral, it is applied inconsistently, and it is the one punishment in our entire justice system that can’t be undone or corrected,” state Representative Adrienne Benavidez, a Democratic sponsor of the Colorado bill, said on Tuesday.

Colorado has just three men on death row, and has executed just one inmate - by lethal injection - since the U.S. Supreme Court reinstated capital punishment in 1976 after a four-year nationwide moratorium.

Opponents of the bill argued during the House debate that even though Colorado rarely carries out executions, prosecutors use the threat of capital punishment to pressure murder defendants into pleading guilty, sparing victims’ families lengthy and painful trials.

Representative Lori Saine, a Republican, read a letter from a prosecutor who said he used the threat of the death penalty to secure guilty pleas from a defendant who murdered his pregnant wife and two small daughters in 2018.

Last week, Tennessee put an inmate to death by electric chair, the fourth execution in the United States this year.