Hong Kong police arrested three people Monday for chanting banned slogans at a university campus last month, accusing them of violating a draconian national security law imposed by China.

The arrests illustrate how Beijing's new law has created a host of new speech crimes as it moves to crush dissent in the international finance hub following months of huge and often violent pro-democracy protests last year.

Li Kwai-wah, a senior officer in Hong Kong's new national security unit, said the three had been arrested for unlawful assembly and "inciting secession", a crime under the national security law.

"They were spotted waving flags and chanting slogans advocating Hong Kong's independence," he told reporters.

Five others were also arrested for unlawful assembly, added Li, who is among a group of senior Hong Kong and Chinese officials who have been sanctioned by the United States.

Amnesty International accused Hong Kong authorities of uleashing a "sweeping repression" in schools and campuses.

"Chanting political slogans, singing songs and waving flags should never be crimes, but there is a grim predictability about these arrests that lays bare the deterioration of human rights in Hong Kong since the national security law was enacted," the group's Hong Kong Programme Manager, Lam Cho Ming, said in a statement.

The arrests under the national security law in Hong Kong were linked to an unofficial graduation rally at a university campus
The arrests under the national security law in Hong Kong were linked to an unofficial graduation rally at a university campus AFP / Yan ZHAO

Beijing imposed the new security law in June, keeping its contents secret until the hour before its enactment.

It targets four crimes: subversion, secession, terrorism and colluding with foreign forces.

Beijing says the law was needed to restore stability, but critics say its broad wording criminalises dissent and eviscerates the freedoms and autonomy Hong Kong was promised ahead of its return to China by Britain.

Protests have largely been stamped out in Hong Kong this year. Monday's arrests were linked to a small unofficial graduation rally at the Chinese University of Hong Kong last month.

Masked students waved banners and chanted pro-democracy slogans, including "Liberate Hong Kong, Revolution of our times" and "Hong Kong independence, the only way out".

Both chants were common during last year's rallies, but they have been declared illegal under the new law, which can carry sentences up to life in prison.

The students also sang "Glory to Hong Kong", a protest song that authorities have also outlawed.