The solid solution series NaMgH3−xFx (x = 0, 0.5, 1, 1.5, 2, 2.5, 3) was synthesized by solid-state reactions under hydrogen gas pressure from binary ionic hydrides, fluorides and magnesium. Rietveld refinement based on X-ray powder diffraction data revealed the GdFeO3-structure type for all compounds and a trend of lattice parameters according to Vegard's law. The anion distribution in NaMgD2F and NaMgD1.5F1.5 was found to be statistical by Rietveld refinement based on neutron powder diffraction data. Photoluminescence measurements on europium(II) substituted NaMgH3−xFx revealed a strong red shift of the emission wavelength (λem = 665nm for NaMgH2F:Eu) in comparison to violet emitting NaMgF3:Eu.