It's a bit more complicated than that: you also have Standard German, which started out basically as a lingua franca of the German dialects and is used for written German and has a similar role as Received Pronounciation has in English. Depending on your age and region, you usually grow up speaking Standard German instead of any particular regional dialect.
This is even more so the case in northern Germany where I grew up. The local Low German dialect is in fact in danger of dying out (my parents still speak it - in fact my mother did not speak any Standard German until elementary school - but I can only understand it). For most of these people, their Standard German is still accented depending on their local dialect. However, since Standard German pronounciation is based on the Hannoverian dialect which is influential where I'm from, I basically speak "perfect" Standard German.*
* except that often /pf/ becomes /f/ and /ug/ becomes /ux/ at the end of the word.