As long as the event calls for a particular level of formality and you won't upstage the couple or the wedding party, it's safe to wear black to the wedding.