There is nothing to be ashamed about. The vast majority of people that voted to leave were relatively educated on the issues, but the media have portrayed a very different picture post election. To say that 52% of those that voted were racist is simply out of order and based on this country's largely tolerant populations (especially relative to other EU countries), I say that the arguments were well beyond this level.
Also consider the scaremongering from the remain side. Consider the fact that my household received 11 leaflets through the door pushing remain, without one from the other side. With these factors considered this was democracy at large. Now let's not panic and make the most of the opportunities presented.