You can't set this to the color black like this. 
If hex is equal to 0x000000 then it will be set to 0xffffff.