It is good to consider the use of the file, and that will help decide the color format to use. Artwork for print will do better with CMYK and artwork for screens will be better in RGB. These too will help decide which file format is used. JPEG is better for RGB raster images on a screen. The PDF file format is great for a vector which is better for CMYK for print.