He was called the science officer in WNMHGB. The original idea was that a ship's science officer was second in command.
He might have spent more time in the labs and in his capacity as science officer than commanding people initially - perhaps he went back to blue because A) he'd worn it before and B) he felt it would facilitate relations between himself and his fellow scientists, however illogical and human such a move would seem to be.