I mean not really. If you think about it from an evolutionary standpoint it's perfectly logical.
Outside groups are dangerous. That's true even within racial groups. Now add that not only are they outsiders they don't look anything like your group. That's another layer of outsiders being dangerous. Not only are they outsiders but they don't look like you.
It's a leftover piece of evolution that helped humans survive. Protect your own and everyone else can get fucked. Especially if they're different.