I think blue laws had a very weird name.
the word blue was used in the 17th century as a disparaging reference to rigid moral codes and those who observed them, particularly in blue-stocking, a reference to Oliver Cromwell's supporters in the parliament of 1653.