A pretty big racial cognitive gap remains after adjusting for income, at least in America. Poor whites do better on cognitive tests than wealthy African Americans: http://glpiggy.net/2013/03/19/a-sociologist-looks-at-race-di...
African Americans are closer to European IQ levels than Africans, probably for several environmental and genetic reasons (better nutrition and schooling, ~25% European ancestry, etc)