A uniform is the mode of dress of an official person.  A judge is an official.