In the title molecule, C20H24Br2N4, the imidazopyridine moiety is not planar as indicated by the dihedral angle of 2.0 (2)° between the constituent rings; the 4-dimethylaminophenyl ring is inclined to the mean plane of the imidazole ring by 27.4 (1)°. In the crystal, two sets of C—H...π(ring) interactions form stacks of molecules extending parallel to the a-axis direction. Hirshfeld surface analysis indicates that the most important contributions to the crystal packing are from H...H (42.2%), H...C/C...H (23.1%) and H...Br/Br...H (22.3%) interactions. The optimized structure calculated using density functional theory (DFT) at the B3LYP/ 6–311 G(d,p) level is compared with the experimentally determined structure in the solid state. The calculated HOMO–LUMO energy gap is 2.3591 eV.