I am trying to get a customized color for my apps navigation bar and it's not coming up right. The hex code for the exact color I need to use is the blue #023883. I looked up the rbg percentages from this site: http://www.colorhexa.com/023883 and the percentages are: rgb(0.8%,22%,51.4%). I put it inside my code like this:
self.navigationController.navigationBar.barTintColor = [UIColor
colorWithRed:0.8 green:22 blue:51.4 alpha:1.0];
self.navigationController.navigationBar.titleTextAttributes =
@{NSForegroundColorAttributeName : [UIColor lightGrayColor]};
self.navigationController.navigationBar.backgroundColor = [UIColor
whiteColor];
self.navigationController.navigationBar.translucent = YES;
I also tried to implement code that enables the use of inputting hexcode for the color value but that didn't work either. Is there another way for me to be able to achieve this color? (I also tried to put only blue at 100 and it still wasnt dark enough a color)






