The basic building blocks of the three-dimensional structure of the title compound, C22H19N3O, are helical chains running along the [101] direction and formed by O—H...N hydrogen bonds. C—H...O hydrogen bonds between chains generate sheets which are then joined together by C—H...N hydrogen bonds. The two- and three-dimensional structures also feature two sets of C—H...π(ring) interactions.