iOS System Indigo

UIColor.systemIndigo
Semantic Accent & Interactive Tint
Adaptive System Token•iOS 13.0+, iPadOS 13.0+, macCatalyst 13.0+

Complete technical specification and developer reference for System Indigo in Apple's iOS & iPadOS design system. In light appearance, it resolves to HEX #5856D6; in dark appearance, it dynamically adapts to HEX #5E5CE6. Features wide-gamut Display P3 values, UIKit bridge (UIColor.systemIndigo), AppKit bridge (NSColor.systemIndigo), WCAG contrast audit, and Xcode drop-in initializers.

Light Mode#5856D6
Dark Mode#5E5CE6
System Indigo Color Preview

An indigo color that adapts to the current trait environment.

ColorUIColor.systemIndigo
Copy:
Dynamic Asset
Semantic Accent & Interactive Tint
iOS 13.0+, iPadOS 13.0+, macCatalyst 13.0+
Initializers & Color Spaces
Color(r:g:b:)Color(red: 0.345, green: 0.337, blue: 0.839)
Color(r:g:b:op:)Color(red: 0.345, green: 0.337, blue: 0.839, opacity: 1.00)
Color(hue:sat:bri:)HSBColor(hue: 0.669, saturation: 0.598, brightness: 0.839, opacity: 1.00)
Color(.displayP3)Wide GamutColor(.displayP3, red: 0.345, green: 0.337, blue: 0.808, opacity: 1.00)
Color(.sRGB)Color(.sRGB, red: 0.345, green: 0.337, blue: 0.839, opacity: 1.00)
Color(hex:)ExtensionColor(hex: "#5856D6")
#colorLiteralXcode#colorLiteral(red: 0.345, green: 0.337, blue: 0.839, alpha: 1.00)
Color(uiColor:)iOSColor(uiColor: UIColor(red: 0.345, green: 0.337, blue: 0.839, alpha: 1.00))
Active HEX: #5856D6P3 R: 0.345 G: 0.337 B: 0.808

Technical Color Specifications

Exact resolved HEX codes, sRGB 8-bit components, HSL, and normalized Swift floating-point decimals for Light and Dark modes.

Color Metric / SpaceLight AppearanceDark AppearanceSwift Code Literal
HEX Code#5856D6#5E5CE6Color(hex: "#5856D6")
sRGB (0–255)rgb(88, 86, 214)rgb(94, 92, 230)(r: 0.345, g: 0.337, b: 0.839)
Display P3 (Wide Gamut)P3 (0.345, 0.337, 0.808)P3 (0.369, 0.361, 0.871)Color(.displayP3, ...)
HSL / HSBhsl(241, 61%, 59%)hsl(241, 73%, 63%)Color(hue:sat:bri:)
Platform BridgeUIKit: UIColor.systemIndigoAppKit: NSColor.systemIndigoColor(uiColor:) / Color(nsColor:)

Light Appearance

Light Theme
HEX Code
#5856D6
RGB (0–255)
rgb(88, 86, 214)
HSL
hsl(241, 61%, 59%)
Normalized Swift Literal:
(r: 0.345, g: 0.337, b: 0.839)

Dark Appearance

Dark Theme
HEX Code
#5E5CE6
RGB (0–255)
rgb(94, 92, 230)
HSL
hsl(241, 73%, 63%)
Normalized Swift Literal:
(r: 0.369, g: 0.361, b: 0.902)

Drop-In Developer Snippets

Ready-to-paste code blocks for Xcode asset catalogs and Swift files.

Xcode Location: Save as Contents.json inside Assets.xcassets/System Indigo.colorset/
Includes Light + Dark Modes
Contents.json
{
  "colors": [
    {
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.345",
          "green": "0.337",
          "blue": "0.839",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    },
    {
      "appearances": [
        {
          "appearance": "luminosity",
          "value": "dark"
        }
      ],
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.369",
          "green": "0.361",
          "blue": "0.902",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    }
  ],
  "info": {
    "author": "xcode",
    "version": 1
  }
}

Live UI Component Sandbox

Preview Color.system indigo inside standard Apple interface components.

Interactive Controls
Active TagBadge 99+
Toggle Tint
Container & Typography Styling

●SwiftUI Notification

Just now

Demonstrates how Apple designers pair system background tints with dynamic System Indigo accents.

Dynamic Headline in System Indigo

.foregroundStyle(UIColor.systemIndigo)

Platform Implementation Snippets

Ready-to-use Swift code for SwiftUI, UIKit, and AppKit applications.

UIKit (Swift)
// UIKit (iOS, tvOS, watchOS)
let view = UIView()
view.backgroundColor = UIColor.systemIndigo

// Label Tinting
let label = UILabel()
label.textColor = UIColor.systemIndigo

// Bridging UIKit into SwiftUI
let swiftUIColor = Color(uiColor: .systemIndigo)

WCAG 2.1 Accessibility Contrast Audit

Contrast calculations of System Indigo against pure white and iOS OLED dark surfaces.

Light Mode (#5856D6)on White (#FFF)
Contrast Ratio:5.65:1
Normal Text (4.5:1 AA): Pass (AA)
Dark Mode (#5E5CE6)on Dark (#1C1C1E)
Contrast Ratio:3.36:1
Normal Text (4.5:1 AA): Fail

Recommended HIG Use Cases

  • Primary action buttons and tint accents
  • Status alerts, badges, and notification tags
  • Active tab bar icons and control highlights

Anti-Patterns to Avoid

  • Full background fills behind body copy
  • Unstyled plain paragraph text

Frequently Asked Questions

How do I use UIColor.systemIndigo in iOS and iPadOS apps?

In UIKit, assign UIColor.systemIndigo directly to properties like view.backgroundColor, label.textColor, or tintColor. In SwiftUI, bridge it using Color(uiColor: .systemIndigo).

What is the HEX code for iOS System Indigo in light and dark mode?

In light appearance, System Indigo resolves to #5856D6. In dark appearance, it automatically adapts to #5E5CE6.

How do I bridge UIColor.systemIndigo into SwiftUI?

In SwiftUI views on iOS 15+, initialize Color(uiColor: .systemIndigo) to utilize this system color with full appearance dynamism.

Does System Indigo adapt automatically to dark appearance in iOS?

Yes, UIColor.systemIndigo is an appearance-aware dynamic UIColor that automatically responds to UITraitCollection changes between light and dark appearances.

Why use UIKit system colors instead of hardcoded hex values?

System colors dynamically adapt to Dark Mode, Accessibility Increase Contrast mode, and future iOS visual refinements without manual color bookkeeping.