Disclosed herein is an optical filter comprising: a resin material obtained by copolymerizing a monomer represented by the following formula (I) and a monomer copolymerizable therewith; and a metallic compound mainly composed of a copper compound; PO(OH)nR3-n(I) wherein R represents <IMAGE> (wherein X represents a hydrogen atom or a methyl group, and m is an integer of 0 to 5), and n is 1 or 2.