Both uses of "in" are correct. ) As far as I can think, "of a different colour" is always adjectival, not adverbial. This rules out its use in (2), for example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.