The majority of Americans were ready for a president with vision for a future ... it just happened that this president happened to be 'black'.
Their other choice, who was a white 'patrician' war hero, would give them more of the same ... so it wasn't the color that was important ... it was the policies.