Fattie
Fattie

Reputation: 12582

What is the standard Apple blue colour?

Historic question.

the information is now available in UIKit:

UIColor.systemBlue


How to access / use the standard Apple blue color?

Upvotes: 23

Views: 47603

Answers (5)

David Rysanek
David Rysanek

Reputation: 979

A bit late, but you can find the colour values in Apple's Human interface guidelines.

The blue is (R, G, B) = (0, 122, 255) = #007AFF

Apple colours

I created a GIST with UIColor extension for your convenience.

Upvotes: 45

Ely
Ely

Reputation: 9121

Since iOS 7, you can simply use this:

UIColor.systemBlue

Upvotes: 8

Magotrox
Magotrox

Reputation: 111

If you're looking just for the RGB hexcode, here it goes:

'#0E7AFE'

Upvotes: 8

i_am_jorf
i_am_jorf

Reputation: 54600

Try the digital color meter? It seems to think (14, 122, 254).

enter image description here

Then add a category:

@implementation UIColor (MyColors)

+ (UIColor*)appleBlue {
    return [UIColor colorWithRed:14.0/255 green:122.0/255 blue:254.0/255 alpha:1.0];
}

@end

Upvotes: 11

Roy K
Roy K

Reputation: 3319

Use this for swift:

extension UIColor {
    static func appleBlue() -> UIColor {
        return UIColor.init(colorLiteralRed: 14.0/255, green: 122.0/255, blue: 254.0/255, alpha: 1.0)
    }
}

Upvotes: 5

Related Questions