After living with 28" in a Landcruiser I was happy with that and used the same dimension when building the last motorhome.
Note that's floor to ceiling, no mattress, we use camping mattresses about 2-3" think and I'm about 5'10". I can't sit up properly, but never need to so that doesn't matter, but if you're used to sitting up in bed reading you'd need more.