Electrochromic film with the general formula: ApBqOxXy wherein: —A is one or more of the elements from the group consisting of Ni, Ir, Cr, V, Mn, Fe, W, Mo, Ti, Co, Ce, Pr and Hf; —B is one or more of the elements from the group consisting of Mg, Ca, Sr, Ba, Nb, Al, Zr, Ta and Si; —O is oxygen; —X is an element from the group consisting of: H, F and N; and the ratio q/p is greater than 0.2 and less than 3.5, x is greater than 0.5 (p+q) and less than 5 (p+q), and y is equal to or greater than 0 and less than 2x. The film may further comprise an amount of Li, Na or K. The invention further relates to an electrochromic device comprising at least one layer of said electrochromic film.