Use code tags, not quote tags for code. I've fixed it for you this time.
Your code looks reasonable, which usually means the problem is elsewhere, in code you haven't shown us. To get better help sooner, post a
SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
edit No, it isn't reasonable. Why do you qualify the variable myBlue with the Color class? That shouldn't even compile, and doesn't make any sense.