Royal Navy ensigns
From WikiPOBia
The Royal Navy ensigns flown by British warships in the early 19th century indicated the admiral under whose orders they were serving. Each admiral had either a red, white or blue flag, and the ships attached to his command could be readily identified by the red, white or blue ensign. (The Union Flag was never flown, except during courts-martial)An ensign was not always worn at sea, but would be shown upon meeting other vessels: a ship always had to show her true colours before opening fire. Amongst the gunsmoke of a battle it would often become difficult to distinguish the ensigns from the French tricoleur, which used all of the same colours.
From the late 17th century, for each rank of admiral in the navy (admiral, vice-admiral and rear-admiral), there were three grades. The lowest grade at each rank was blue, so the lowest flag rank was Rear-admiral of the Blue squadron. A rear-admiral then advanced to the White squadron and then the Red. Promotion (which was purely on seniority) then went through the same squadrons at the vice-admiral and admiral rank.
A ship carrying an admiral would wear his flag at the appropriate masthead; all others would wear the relevant ensign at a subordinate place depending upon their construction, usually at a yard-arm or backstay. Ships sailing directly under Admiralty orders, and so not subordinate to an admiral, would fly the Red ensign.
The dimensions of the ensigns were originally determined by Samuel Pepys as being in the ratio of 18:11, however by the time of Aubrey, the ratio had become closer to 18:10 or 18:9.