Because some color profile problem, storyboard color displayed different color, not what you intended.
You have to set color profile to ‘sRGB’.
‘sRGB’ is provide same color with code based color.
When you use set color from code, check your storyboard color profile setting.