This question already has an answer here:
I'm currently designing a logo in CYMK (in Illustrator CS6). The logo will be used in digital printing, web and for business cards. Is it correct to use CYMK or would it better to use colors from Pantone/HKS?
If CMYK is the correct choice, is it good to export the logo from Illustrator for web publishing? Is there something that I need to ensure that the colors remain the same as in CYMK?