IR Remote library errors

I got the IR receiver picking up low frequencies from my Sony RM-EZ4 remote. I see the Sony TV code 8201 gives me decimal readings in the Serial monitor. I see the Sony Cable box code 3101 gives me Hex readings. I want to control the color by button pressed. Can I program specific color to remote buttons? Which Sony protocol should I use? Does it matter much between TV and cable box?