The seven least patriotic states voted for Hillary Clinton in the 2016 presidential election, according to a new study released on Tuesday.

New Jersey was ranked the least patriotic state, followed by Illinois, Massachusetts, Rhode Island, New York, Connecticut, and California, according to a report from WalletHub.

Each of these seven least patriotic states voted for Democratic presidential nominee Hillary Clinton in 2016.

States were graded on a 100-point scale stemming from data comparing 13 key indicators of patriotism based on military and civic engagement. A score of 100 would represent the highest level of patriotism.

The data factored in military enlistees, active-duty military personnel, veterans, and share of adults who voted in the 2016 presidential election.

The lowest ranked state, New Jersey, received a patriotism score of 27.46, followed by Illinois with a score of 28.46. Clinton won by over 50 percent in both states.

New York garnered a patriotic score of 30.59, and California scored a 37.70. In both states, Clinton won with almost 60 percent of the overall vote.

Red states ranked higher in patriotism overall than blue states. Red states had an average score of 28.55, while blue states had an average rank of 23.47.

The top three most patriotic states were Virginia, Alaska, and Wyoming.

The data was collected from the U.S. Census Bureau, Department of Veterans Affairs, Defense Manpower Data Center, Corporation for National and Community Service, Peace Corps, Military OneSource, United States Elections Project, Administrative Office of the United States Courts, and Center for Information and Research on Civic Learning and Engagement.