What primary colors are we mixing when using hex values?

Red, green, and blueCyan, magenta, and yellow

Red, green, and blue.