In the title compound, C 22 H 17 N 3 O, the N atoms of the pyridine rings exhibit a typical trans – trans arrangement: the dihedral angles between the central pyridine ring and the peripheral rings are 22.24 (4) and 2.38 (4)°. In the crystal, pairwise C—H...N hydrogen bonds form inversion dimers described by an R 2 2 (6) graph set descriptor, which further interact through C—H...π and π–π interactions, creating a two-dimensional supramolecular network propagating in the bc plane.