title: Set navigation bar color
body: <p>I have a navigation bar in my application and i need to customize color like that </p>
  
  <p><a href="https://i.stack.imgur.com/TFFpR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TFFpR.png" alt="enter image description here"></a></p>
  
  <p>so i but in app delegate this piece of code to customize navigation appearance :</p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
  
  UINavigationBar.appearance().isTranslucent = false
          UINavigationBar.appearance().barTintColor = getColorFromHex("438CC5")
          UINavigationBar.appearance().tintColor = UIColor.white
  
  
  
  }
  </code></pre>
  
  <p>I pick up the color by color picker and put the hex in my code but not getting the same color  </p>
  
  <p>any help how can i set specific color to Navigation bar ? </p>
  
  <p><a href="https://i.stack.imgur.com/HFnTg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HFnTg.png" alt="enter image description here"></a></p>