The literal translation of this sentence is あなたのおなまえはなんですか but I wouldn't ask for the name with this way.
I would say:
おなまえをおしえてください。
おなまえをおしえていただけますか。
すみませんが / しつれいですが、おなまえは?
I think these sentences aren't for beginners but they are very common here and we have more ways for the formality.
I hope this was helpful.