Color variations of the blazar 3C 454.3 in 2004–2006