For every 100 wins with a faction in Ranked ladder and Gauntlet mode combined you earn one faction ribbon which is displayed in every ranked and friendly match. There are also tournament ribbons which can only obtained by winning an official tournament.
Here are the different ribbons: