I'm reading an android game development book and i've come across the RGB triplet: (31, 31, 45) using 16 bits (Red gets 5 bits, Green gets 6 bits, Blue gets 5 bits).
I'm a little confused on the last number in the triplet: 45. If the last coordinate is for the color blue, and blue only gets 5 bits, how is it possible to have a 45 in the last coordinate spot? Shouldn't the highest number possible for blue be 31?
BTW supposedly this triplet creates the color pink.
can someone help clear up the confusion?
Edit: if it helps the hexadecimal for the color is 0xFC0D