In the title compound, C24H30N6O5, the cyclohexyl ring adopts a chair conformation, while the remainder of the molecule adopts a U-shape. The dihedral angles between the pyridine ring and the pendant pyrimidine rings are 69.04 (12) and 75.99 (9)°. The two pyrimidine rings, however, are nearly parallel to one another, with a dihedral angle of 8.56 (15)° between them. They are also involved in an intramolecular π–π stacking interaction with a distance of 3.6627 (18) Å between the ring centroids. In the crystal, C—HO contacts link the molecules into chains along the b axis.