Washington (CNN) More than 31,000 people have been denied entry to the United States due to President Donald Trump's travel ban, a State Department official said Tuesday.

During a nearly three-hour House hearing, Democratic lawmakers slammed officials over the travel ban enacted by the Trump administration that primarily targets mostly Muslim-majority countries.

The travel restrictions, which were upheld by the Supreme Court last year, currently affect Iran, Libya, Somalia, Syria and Yemen, along with Venezuela and North Korea. Chad was removed from the list last April, after the White House said the country improved security measures.

Edward Ramotowski, deputy assistant secretary for Visa Services in the Bureau of Consular Affairs, said there's been "approximately 31,334 refusals up to September 14, 2019."

Some visa applicants may be eligible for a State Department waiver or fall under one of the department's exceptions, he added. Ramotowski told lawmakers Tuesday that the department has issued more than 7,600 waivers.

Read More