Below are samples to illustrate the color matching abilities of different file formats.

GIF
Indexed Color
GIF Test
SVG
Indexed Color
SVG Test
JPG
Generic RGB
JPG Test
JPG
Adobe RGB (1998)
JPG Test
JPG
sRGB, no color profile
JPG Test
PNG-8
Indexed color
PNG-8 Test
PNG-24
Generic RGB
PNG-24 Test
PNG-24
Adobe RGB (1998)
PNG-24 Test
PNG-24
sRGB, no color profile
PNG-24 Test