The Rainbow Codes were a series of code names used to disguise the nature of various British military research projects. They were mainly used by the Ministry of Supply from the end of the Second World War until 1958, when the ministry was broken up and its functions distributed among the forces. The codes were replaced by an alphanumeric code system.