True, and I have been told this by Indian professors as well.
It's common among the older generation of Indians to view black people in the stereotype that Africans are "backward" and "primitive".
Intermarrying with a black person is a massive taboo since it also means that the children will have darker skin - which most Indians view as a major physical flaw. You just need to watch a Bollywood film to see that.
Fortunately, I do think the younger generation tend to hold these views less strongly.
I know that my Hindu Indian friends openly and unabashedly detest muslims. All of them.
My Kshatriya friend's mother didn't care if he married an American or an Indian (he married a Chinese woman), but she did tell him, "NO MUSLIM!"
Yeah, dislike towards Muslims is quite strong. Islamic forces have been invading India since the 10th century so it’s understandable why many Hindu’s are aggressive towards Islam. Islamic conquests of India led to a lot of cultural damage.
https://en.wikipedia.org/wiki/Delhi_Sultanate