We describe a novel approach to implementing wide-field-of-view narrow-band spectral filters, using an array of resonant nanocavities consisting of periodic defects in a two-dimensional three-material photonic-crystal nanostructure. We analyze the transmissivity of this type of filter for a range of wavelengths and in-plane incidence angles as a function of the defect's refractive index, the number of layers in the photonic-crystal reflectors, and the period of the defects and find that this structure diminishes the angular sensitivity of the resonance condition relative to that of a standard multilayer filter.