Players in your own corporation and alliance typically have blue icons, and those you're at war with have red icons- this is based on manually-set "standings". Alliance roams typically have a NBSI policy: Not Blue, Shoot It!, which means you'll be attacking enemies and neutrals.