The form you're thinking of is Dark Super Sonic. He appears in the Sonic X anime, specifically around episode 67, as a dark, powerful version of Sonic.