In the title compound, C22H17N3O, 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 R22(6) graph set descriptor, which further interact through C—H...π and π–π interactions, creating a two-dimensional supramolecular network propagating in the bc plane.