SwiftUI Color.teal
.tealComplete technical specification and developer reference for Teal in Apple's SwiftUI design system. In light appearance, it resolves to HEX #00C3D0; in dark appearance, it dynamically adapts to HEX #00D2E0. Features wide-gamut Display P3 values, UIKit bridge (UIColor.systemTeal), AppKit bridge (NSColor.systemTeal), WCAG contrast audit, and Xcode drop-in initializers.
SwiftUI's adaptable teal.
Color.tealColor(red: 0.000, green: 0.765, blue: 0.816)Color(red: 0.000, green: 0.765, blue: 0.816, opacity: 1.00)Color(hue: 0.510, saturation: 1.000, brightness: 0.816, opacity: 1.00)Color(.displayP3, red: 0.345, green: 0.753, blue: 0.804, opacity: 1.00)Color(.sRGB, red: 0.000, green: 0.765, blue: 0.816, opacity: 1.00)Color(hex: "#00C3D0")#colorLiteral(red: 0.000, green: 0.765, blue: 0.816, alpha: 1.00)Color(uiColor: UIColor(red: 0.000, green: 0.765, blue: 0.816, alpha: 1.00))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 / Space | Light Appearance | Dark Appearance | Swift Code Literal |
|---|---|---|---|
| HEX Code | #00C3D0 | #00D2E0 | Color(hex: "#00C3D0") |
| sRGB (0–255) | rgb(0, 195, 208) | rgb(0, 210, 224) | (r: 0.000, g: 0.765, b: 0.816) |
| Display P3 (Wide Gamut) | P3 (0.345, 0.753, 0.804) | P3 (0.373, 0.812, 0.867) | Color(.displayP3, ...) |
| HSL / HSB | hsl(184, 100%, 41%) | hsl(184, 100%, 44%) | Color(hue:sat:bri:) |
| Platform Bridge | UIKit: UIColor.systemTeal | AppKit: NSColor.systemTeal | Color(uiColor:) / Color(nsColor:) |
Light Appearance
#00C3D0rgb(0, 195, 208)hsl(184, 100%, 41%)(r: 0.000, g: 0.765, b: 0.816)Dark Appearance
#00D2E0rgb(0, 210, 224)hsl(184, 100%, 44%)(r: 0.000, g: 0.824, b: 0.878)Drop-In Developer Snippets
Ready-to-paste code blocks for Xcode asset catalogs and Swift files.
Contents.json inside Assets.xcassets/Teal.colorset/{
"colors": [
{
"color": {
"color-space": "srgb",
"components": {
"red": "0.000",
"green": "0.765",
"blue": "0.816",
"alpha": "1.000"
}
},
"idiom": "universal"
},
{
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
],
"color": {
"color-space": "srgb",
"components": {
"red": "0.000",
"green": "0.824",
"blue": "0.878",
"alpha": "1.000"
}
},
"idiom": "universal"
}
],
"info": {
"author": "xcode",
"version": 1
}
}Live UI Component Sandbox
Preview Color.teal inside standard Apple interface components.
●SwiftUI Notification
Just nowDemonstrates how Apple designers pair system background tints with dynamic Teal accents.
.foregroundStyle(.teal)
Platform Implementation Snippets
Ready-to-use Swift code for SwiftUI, UIKit, and AppKit applications.
// Standard SwiftUI Usage
Text("Hello, Apple")
.foregroundStyle(Color.teal)
// Background & Shape Fill
RoundedRectangle(cornerRadius: 16)
.fill(Color.teal)
.frame(width: 200, height: 50)
// Prominent Action Button
Button("Confirm Action") {
// Action
}
.buttonStyle(.borderedProminent)
.tint(Color.teal)WCAG 2.1 Accessibility Contrast Audit
Contrast calculations of Teal against pure white and iOS OLED dark surfaces.
Recommended HIG Use Cases
- Navigation tags and category markers
- Technical charts and data visualizations
- Utility toggles and filters
Anti-Patterns to Avoid
- Primary destructive or positive confirmation alerts
Browse More SwiftUI Colors
Quickly jump to other Apple system colors and semantic tokens.
Frequently Asked Questions
How do I use Color.teal in SwiftUI?
In SwiftUI, apply the color directly using view modifiers like .foregroundStyle(.teal), .tint(.teal), or .background(.teal). You can also instantiate it via Color.teal.
What is the HEX code for SwiftUI Teal in light and dark mode?
In light appearance, SwiftUI Teal resolves to #00C3D0. In dark appearance, it automatically adapts to #00D2E0.
What is the UIKit and AppKit equivalent of SwiftUI Color.teal?
The UIKit equivalent is UIColor.systemTeal (accessible in SwiftUI via Color(uiColor: .systemTeal)). The AppKit equivalent is NSColor.systemTeal (accessible via Color(nsColor: .systemTeal)).
Does SwiftUI Color.teal adapt automatically to dark mode?
Yes, Color.teal is a dynamic Apple system token that automatically updates between light (#00C3D0) and dark (#00D2E0) appearances when the system appearance changes.
What is the Display P3 and sRGB value of Color.teal?
Color.teal uses resolved sRGB values (#00C3D0 in light, #00D2E0 in dark) and supports wide color gamut Display P3 coordinates for high-fidelity rendering on Apple Retina displays.