Two novel 2,7-naphthyridine derivatives are unexpectedly synthesized by the reaction of 2-(3,5-diaryl-4H-pyran-4-ylidene)malononitrile and benzylamine, and are achieved through different ring-closing mechanisms. These two derivatives with twisted molecular conformations display phosphorescence, thermally activated delayed fluorescence, and high contrast solid-state acidochromism due to special chemical structures.