Colors and digital cameras can be a real headache .. for some reason, a lot of digital cameras have a great deal of difficulty with dark blues and purples. The cameras see light differently then we do - they see "color temperature". With most cameras you can actually change how the camera sees color using something called "white balance". Light is measured not only in strength, but color temperature as well.
I'm sure you've noticed color shifts with pictures taken in florescent light (kinda bluish), or incandescent light (kind of orangy), the shade, bright sun or when it's cloudy.
Most digital cameras have buttons where you can choose your scenery. So get out your manual and look for the section that describes the following - some cameras will have more or less:
Auto
Fluorescent
Incandescent
Sunny
Cloudy
Flash
Once you get use to using these and seeing in the view finder how it changes the color you can actually use these settings to get better color.