It's simply how the game displays the numbers... it seems to choose the color by comparing how much damage is dealt with a certain threshold.
For example, Divine Avenger deals dual damage - normal and elemental. When the sword is not fully heated, you may see grey instead of blue numbers when you hit constructs with it.
A past thread touching on the same subject:
http://forums.spiralknights.com/en/node/32949