Say I have two objects (we'll call them object $1$ and object $2$) of the same material but of a different colour, placed at the same distance away from another object (we'll call object $3$) that radiates only infrared. Will the fact that object $1$ and $2$ have a different colour cause different absorptions of infrared radiation or will they absorb the same amount of infrared. What about if object $3$ only radiates ultraviolet or other light invisible to the eye instead of infrared.
What I'm trying to ask is whether the colour of an object can affect its absorption of light beyond the visible spectrum - is it only the material that matters, and why? If the colour does matter, then what colours would absorb more and what colours would absorb less, and why.
Please note that the only variable that changes is that object $1$ and $2$ are different colours, nothing else.