Fewer than one in three American voters like President Trump as a person — while 59 percent dislike him, a new Quinnipiac University poll said Tuesday.

Overall, just 31 percent of voters said they liked the commander-in-chief, who has been on a summer-long Twitter rant attacking Attorney General Jeff Sessions, the FBI, special counsel Robert Mueller, Hillary Clinton and the “fake news” media, among others.

Most Republicans remained loyal, with 66 percent saying they like him and 24 percent saying no thanks — the only listed party, gender, education, age or racial group that still liked him 19 months into his first term.

“Not the kind of numbers that gets you a date to the prom — or helps your party as the midterm elections approach,” said Tim Malloy, assistant director of the Quinnipiac poll.

Voters by 54 percent to 41 percent also disapproved of the job Trump is doing as president, including 48 percent who disapproved strongly. Another 30 percent approved strongly.

“For President Trump, another Groundhog Day. His job approval gets another cool reception in midst of the sweltering summer. What does it mean? Simple: The base is hanging in and the rest aren’t buying in,” Malloy said.

Trump — who called Omarosa Manigault Newman, his former top African-American staffer in the West Wing, a “dog” Tuesday on Twitter — does not treat people of color with the same respect he gives white people, voters said by a margin of 54 to 39 percent.

Voters also said by 54 percent to 37 percent that “President Trump has emboldened people who hold racist beliefs to express those beliefs publicly.”

And despite the president’s continued bashing of media he doesn’t like as “fake news,” 65 percent of American voters said the media was an important part of US democracy compared to 26 percent who agreed with Trump’s assessment that the media is the enemy of the people.

A majority of Republicans — 51 percent — agreed with the president’s statement while 36 percent did not.

A majority of Americans, including a plurality of Republicans, also said the president should knock off his near-daily Twitter tirades.

Overall, 66 percent said he should zip it while 26 percent wanted him to keep tweeting. Forty-seven percent of GOPers agreed that he should stop while 44 percent said he should keep tweeting away.

“The media, so frequently excoriated by the White House, is not considered an enemy of the people. Far from it,” Malloy said.

Trump is also not tough enough on Russia, according to 55 percent of American voters, with 1 percent saying he is too tough and 36 percent saying his attitude toward Russia is about right.

It is never acceptable for a presidential campaign to obtain information on a political opponent from a hostile foreign power, voters said by 79 percent to 12 percent who said it was OK. Among

Republicans, 69 percent said nyet while 19 percent had no problem with foreign collusion.

Mueller is conducting a fair investigation into possible coordination between the Trump campaign and the Kremlin, voters said by 51 percent to 33 percent.