Can be from tempering, but it's usually hard to get the color that consistent. It could also be anodized or acid treated. There's a lot of different ways to change the color of steel.
It's not that impractical, but pretty much all swords are for show nowadays. There's no practical justification to have a dedicated melee weapon, especially the ones that are most effective in combat.