Blue means it's the exact copy in your collection (edition, foil, langauge); gray means you have a card in your collection but it may not match the exact type. I have a foil Urza's Legacy Rancor? It shows up as blue. If I lack a non-foil and it defaults to non-foil, it's gray.