Nanostructured luminescent materials based on perovskite nanocrystals (p-NCs) are attractive since their optical properties can be tuned in a wide spectral range with high luminescence quantum yields and lifetimes, however, they lack stability. In this work, the optical properties of highly luminescent colloidal p-NCs (CsPbX3, where X = Cl/Br, Br, I) embedded in porous opal matrices are presented. It is shown that the photoluminescence of the p-NCs embedded into opal matrices possess increased longtime stability of its spectral and kinetic parameters under ambient conditions. LEDs based on the developed materials show pure color p-NC emission with stability of its parameters. The results of this work may expand the knowledge of interactions between luminescent nanoparticles within multicomponent nanostructured materials for further photonic applications.