Many of the nation’s best public universities are enrolling disproportionately few African-American and Latino students.

Flagship universities are the jewels in the crown of public higher education systems — they have sought-after faculty, preeminent research facilities, the most resources and often the highest graduation rates, for all races. They also stand as beacons of affordable excellence for the students of their states. But when it comes to equitably serving the state’s residents, whose taxes fund these top-flight universities, many fall far short of their stated missions. Often there are big differences — defined by race — between who’s graduating from a state’s public high schools and who’s getting into its flagship universities.

More than a third of U.S. states had at least a 10-point gap (including eight with a 20-point gap) between the percentage of their public high school graduates who are African-American and the percentage of their flagships’ freshman class who are African-American (in 2015, the most recent data available). For Latinos, 10 states had at least a 10-point gap. New York and Illinois were the only states that had double-digit gaps for both groups.

African-American and Latino enrollment at Iowa’s flagship University of Iowa, in Iowa City, virtually evened out in the 2015 data. Its African-American enrollment was 4 percent of total enrollment, down 1 percentage point from the 5 percent proportion of African-Americans graduating from high school in Iowa that year. Latino enrollment at the UI comprised 9 percent of total 2015 enrollment, 1 percentage point from the 8 percent share of Iowa’s high school graduates that same year.

“It matters who’s enrolled at flagships, because they tend to go on to be leaders in their states, particularly in politics and in business,” said Andrew Nichols, director of higher education research and data analytics at The Education Trust, an advocacy group that focuses on college access. “It’s important for everyone going to these universities that they are diverse.”

It’s also important for students financially. Most flagships have larger endowments, allowing them to offer more generous scholarships and provide more robust academic and social support to students. And later on, in many states, the average earnings for graduates from flagships outpace those of graduates from most of the state’s regional public universities and colleges.

Five of the six states with the largest gaps for African-Americans are in the South (the sixth is Delaware). Mississippi leads the way, with a 40-point gap between the African-American percentage of its public high school graduates in 2015 and the African-American percentage of students enrolled at the University of Mississippi that fall. African-Americans comprised 10 percent of freshmen at Ole Miss in 2015, an 8-percentage-point drop since 2010.

“It matters who’s enrolled at flagships, because they tend to go on to be leaders in their states, particularly in politics and in business.” Andrew Nichols, director of higher education research and data analytics, The Education Trust

African-American students say their shrinking numbers on a campus that famously resisted integration contribute to a more difficult learning environment.

The University of South Carolina enrolled the lowest percentage of African-Americans in its 2015 freshman class among the 34 colleges and universities in the state system.

The University of Georgia and Louisiana State University both have enrollment gaps equal to South Carolina’s (31 points), but LSU, unlike the others, has increased African-American enrollment since 2010.

Among states where at least 10 percent of the graduating high school class was African-American in 2015, the University of Kentucky had the smallest African-American flagship freshmen-high school graduates gap, of 3 percent. President Eli Capilouto, who arrived six years ago, was explicit about wanting the student body to be representative of the state, said UK’s vice president for institutional diversity, Sonja Feist-Price. She sees greater diversity as creating educational advantages for white as well as black students.

“We have students here who have not encountered many, or any, students who are different from them,” said Feist-Price, a UK faculty member since 1992. “We’re all far better off when we understand the ways we are alike and different.”

The largest gaps in enrollment for Latino students are, for the most part, at different institutions than those that have large gaps for African-Americans, and are concentrated in the western part of the country.

“Our goal is to serve the state, and to have conversations in our classrooms that reflect the diversity of the state.” Amy Jarich, associate vice chancellor for admissions and enrollment, University of California, Berkeley

The University of California, Berkeley, has the largest gap for Latino students — only 13 percent of its 2015 freshman class was Latino, compared to 51 percent of the state’s public high school graduates.

“We definitely see it; it bothers me every day,” said Amy Jarich, Berkeley’s associate vice chancellor for admissions and enrollment. “Our goal is to serve the state, and to have conversations in our classrooms that reflect the diversity of the state.”

One issue is that elite institutions like UC Berkeley try to compete nationally — and internationally — for top students. Starting in 2009, as state budget cuts squeezed resources, out-of-state and international students who could pay full freight became attractive as a source of revenue. Now 24 percent of Berkeley’s students are from outside California.

An exception to the western trend is the University of New Mexico. The Latino flagship freshmen-high school graduates gap in 2015 at the University of Texas at Austin, for example, was more than four times the size of the gap at UNM. And the University of Arizona, the University of Colorado-Boulder and the University of Nevada-Reno have gaps three times larger.

UNM administrators say that its success in graduating Latino students is one of the university’s biggest selling points.

“Mentoring, cultural celebration, places to find support and comfort, and committed faculty and staff, many who come from similar backgrounds, make a difference.” Terry Babbitt, vice provost of enrollment and analytics, University of New Mexico

“Students and families see that there is a culture of support and success at UNM,” the university’s vice provost of enrollment and analytics, Terry Babbitt, wrote in an email. “Mentoring, cultural celebration, places to find support and comfort, and committed faculty and staff, many who come from similar backgrounds, make a difference.”

Babbitt also said that to reduce inequity, there must be an “institutional commitment” to serving the population in question.

“Everyone has to be on board,” said Babbitt. “An ethnic center, minority recruitment office or other siloed group won’t get the job done alone.”

This story was produced by The Hechinger Report, a nonprofit, independent news organization focused on inequality and innovation in education. Sign up for The Hechinger newsletter.