This question already has an answer here:
Harry named his kids after six people:
- James (Potter)
- Sirius (Black)
- Lily (Evans)
- Luna (Lovegood)
- Albus (P.W.B. Dumbledore)
- Severus (Snape)
J.K. Rowling has previously described Harry's choice as "perpetuat[ing] the names of [those] who had nobody in their families to do so."
So why did he name a kid after Luna if she didn't die?
Inspired by this question