Navigation Bar Color

I am trying to change the navigation bar background color of my view.

Init() {
   let coloredAppearance = UINavigationBarAppearance()
   
//coloredAppearance.configureWithTransparentBackground()
//It doesnt matter what I use in here, it continues the same

coloredAppearance.backgroundColor = UIColor(red: 202.0/255.0, green: 52.0/255.0, blue: 86.0/255.0, alpha: 1.0)
   
coloredAppearance.titleTextAttributes = [.foregroundColor: UIColor.white]
    
UINavigationBar.appearance().standardAppearance = coloredAppearance

UINavigationBar.appearance().compactAppearance = coloredAppearance

UINavigationBar.appearance().scrollEdgeAppearance = coloredAppearance
    
UINavigationBar.appearance().tintColor = .white

However if you get the red, green, blue, and alpha used above, you will see the color is being shown slightly different on the NavigationBar.

What's the reason for that ? Thx

Slightly different: could you be more specific ?

Navigation Bar Color
 
 
Q