If you're familiar with Pascal's Triangle, I think that's the quickest way to do questions like this, and it makes sure you haven't accidentally forgotten a possible combination or miscounted them.
The 2^4 line of Pascal's Triange is 1 4 6 4 1. You can see right away there are (4+4) combinations with exactly three of one of the hats (1 combination of 4 blue, 1 combination of 4 red, and 6 combinations of 2 of each).
If you're not familiar with the triangle, or have forgotten it from your school days, it may be worth refreshing if you have the time. When there aren't that many iterations, it's easy enough to list out possible cases, but it gets trickier, more time consuming, and more prone to error the more the higher the number of events.