Valencia , officially València , was rejected as the capital of the autonomous community of Valencia even though it 's the third-largest city in Spain after Madrid and Barcelona , with around 800,000 inhabitants in the administrative center .
Valencia is the capital of Valencia .