What namespace did you import to get the Color class? You probably need to add it as a reference in your VS project properties.
You say the code works in the Journal Editor, but not in Visual Studio.
This is because code that's built/run in the Journal Editor automatically gets a reference to System.Drawing, so "Color" is understood to mean System.Drawing.Color.
In Visual Studio, you have to add the reference to System.Drawing yourself.