In order to make the contrast between the brightness outside, and the darkness of the cockpit a bit less, the cockpits were given a bright colour to be less tiresome for the eyes. It's especially useful in cockpits with only a little lightfall from outside, in aircraft like the Tu-128P or MiG-23 and -25.