Modern dogma requires that we believe in Darwin and reject racism. This may not be so easy. Consider the alternate title of The Origin of the Species:
The Origin of the Species by Means of Natural Selection
or
The Preservation of Favoured Races in the Struggle for Life
"Favoured Races"? Tut-tut. If Darwin anticipated the scientific racism of the 1920s and 1930s, perhaps this too could be considered confirmation of his theories.
Consider reading beyond the title. You will learn that Darwin considered the term "race" to be a fuzzy construct, as difficult to apply as it was to determine when a village became a town; and he used "race" interchangeably with the term "species" and sometimes "sub-species."