Green’s Dictionary of Slang

blue ribbon n.

[SE blue ribbon, a blue ribbon worn as a badge of honour; thus referring to the quality of the best gin]

[early 19C] gin.