Covalent organic framework (COF) film with electrofluorochromic (EFC) and electrochromic (EC) properties has been synthesized by using triphenylamine-based monomers. The film exhibited a high maximum fluorescence contrast of 151 when subjected to a drive voltage of 0.75 V vs the Ag/AgCl electrode, causing the fluorescence to be quenched, which resulted in the EFC process's "fluorescence off" state. The switching times for the fluorescence on and off states were 0.51 and 7.79 s, respectively. Over the same voltage range, the COF film also displayed EC properties, achieving a contrast of 50.23% and a coloration efficiency of 297.4 cm