He won BECAUSE of his "lack of experience," not in spite of it. 2008 was a year when after 8 years of horrible disasters from Washington, being an outsider was seen as an advantage.
Being black probably hurt him more than it helped him even in the Dem primary. There are a lot of racist democrats, especially in the south, that just don't trust him because he's not white.