Why does fillRect() has a different color?

My question is simple. I have the following code:

g.fillAll(Colours::white);
g.setColour(Colour(19, 31, 107)); // desired RGB
g.fillRect(0, 971, getWidth(), 69);

But then the rectangle has RGB = 37, 44, 101. Why is this different?

Is this on the mac? Does your monitor have colour calibration enabled? If so, that’s the issue.

It is running on Windows 7 and 10. I don’t think the monitor is doing this because other labels (on the same page) with the same desired RGB are rendered correctly.

check Graphics::setOpacity