Reputation: 12582
Historic question.
the information is now available in UIKit:
UIColor.systemBlue
How to access / use the standard Apple blue color?
Upvotes: 23
Views: 47603
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
I created a GIST with UIColor extension for your convenience.
Upvotes: 45
Reputation: 111
If you're looking just for the RGB hexcode, here it goes:
'#0E7AFE'
Upvotes: 8
Reputation: 54600
Try the digital color meter? It seems to think (14, 122, 254).
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
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