---
title: "UIKit Content Background colors | Explore SwiftUI"
description: "The UIKit colors that are also used in other components like in List and GroupBox"
canonical_url: "https://exploreswiftui.com/library/color/uikit-content-background-colors"
meta:
  author: "Explore SwiftUI"
  "og:description": "The UIKit colors that are also used in other components like in List and GroupBox"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_UIKit%2BContent%2BBackground%2Bcolors%2Cdescription_The%2BUIKit%2Bcolors%2Bthat%2Bare%2Balso%2Bused%2Bin%2Bother%2Bcomponents%2Blike%2Bin%2BList%2Band%2BGroupBox%2Ccategory_Color%2Cimage_~L2FwaS9pbWFnZXMvMTMvdmFyaWFudHMvNTM~dj0xNzkwMDczNDc4ODQyJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwidmlzaW9uT1MiXX0%2Cp_Ii9saWJyYXJ5L2NvbG9yL3Vpa2l0LWNvbnRlbnQtYmFja2dyb3VuZC1jb2xvcnMi%2Cs_NOnvcjo6SD1xFK40.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "UIKit Content Background colors | Explore SwiftUI"
  "twitter:description": "The UIKit colors that are also used in other components like in List and GroupBox"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_UIKit%2BContent%2BBackground%2Bcolors%2Cdescription_The%2BUIKit%2Bcolors%2Bthat%2Bare%2Balso%2Bused%2Bin%2Bother%2Bcomponents%2Blike%2Bin%2BList%2Band%2BGroupBox%2Ccategory_Color%2Cimage_~L2FwaS9pbWFnZXMvMTMvdmFyaWFudHMvNTM~dj0xNzkwMDczNDc4ODQyJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwidmlzaW9uT1MiXX0%2Cp_Ii9saWJyYXJ5L2NvbG9yL3Vpa2l0LWNvbnRlbnQtYmFja2dyb3VuZC1jb2xvcnMi%2Cs_NOnvcjo6SD1xFK40.png"
  "twitter:title": "UIKit Content Background colors | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone](https://exploreswiftui.com/iphone?element=13)

# **UIKit Content Background colors**

The UIKit colors that are also used in other components like in List and GroupBox

![UIKit Content Background colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/13/variants/53?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 13.0.+ iPadOS 13.0+ visionOS 1.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/uikit/ui-element-colors#Standard-content-background-colors)

```
VStack {
  List {
    Section {
      Text("content")
    }
  }
  .frame(maxHeight: 50)
  HStack {
    smallRect
    // can also be used as inverted text color
      .foregroundStyle(Color(.systemBackground))
    smallRect
    // GroupBox content backgroud
      .foregroundStyle(Color(.secondarySystemBackground))
    smallRect
      .foregroundStyle(Color(.tertiarySystemBackground))
    smallRect
    // can also be used as inverted text color
    // List background
      .foregroundStyle(Color(.systemGroupedBackground))
    smallRect
    // List content background
      .foregroundStyle(Color(.secondarySystemGroupedBackground))
    smallRect
      .foregroundStyle(Color(.tertiarySystemGroupedBackground))
  }
  GroupBox {
    Text("content")
  }
  .frame(maxHeight: 50)
}
```

### **Found an issue or have a suggestion?**

Created: May 29, 2025Updated: May 29, 2025

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **More Color Components **

[**View all **](https://exploreswiftui.com/library/color)

![Color Opacity - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/16/variants/124?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Color Opacity**

The Color opacity modifier

![Color Gradient - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/15/variants/143?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Color Gradient**

The Color gradient modifier

![UIKit Separator Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/14/variants/57?v=1790073478842&r=2&w=412&q=75&f=webp)

### **UIKit Separator Colors**

The UIKit separator colors that are also used in other components, such as the TextField

![UIKit Text Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/12/variants/55?v=1790073478842&r=2&w=412&q=75&f=webp)

### **UIKit Text Colors**

The UIKit text colors that are also used in other components, such as the TextField

![UIKit Fill Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/11/variants/43?v=1790073478842&r=2&w=412&q=75&f=webp)

### **UIKit Fill Colors**

![UIKit Label Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/10/variants/45?v=1790073478842&r=2&w=412&q=75&f=webp)

### **UIKit Label Colors**

![Color Variants - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/9/variants/209?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Color Variants**

HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles

![Semantic Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/8/variants/51?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Semantic Colors**

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Swipe Action - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/200/variants/322?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Swipe Action**

Adds custom swipe actions to a row in a list or container, notifying you when the actions are revealed or dismissed.

![CarouselListStyle - watchOS - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/102/variants/328?v=1790073478842&r=2&w=412&q=75&f=webp)

### **CarouselListStyle**

The carousel list style.

![Stepped Slider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/50/variants/273?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Stepped Slider**

Creates a slider to select a value from a given range, subject to a step increment

![Toggle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/208/variants/624?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Toggle**

Creates a toggle with title, image, systemImage, and custom label.

![Future DatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/68/variants/18?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Future DatePicker**

Creates an instance that selects multiple dates on or after some start date

![Min Max Current Value Gauge - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/40/variants/231?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Min Max Current Value Gauge**

Creates a gauge showing a value within a range and describes the gauge’s current, minimum, and maximum values

![Nested Menu - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/21/variants/151?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Nested Menu**

A Menu inside a Menu

![Wheel Picker Item Height - watchOS - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/188/variants/587?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Wheel Picker Item Height**

Sets the default wheel-style picker item height.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/color/uikit-content-background-colors#webpage","@type":"WebPage","dateModified":"2025-05-29T10:20:52.091Z","datePublished":"2025-05-29T10:20:12.336Z","description":"The UIKit colors that are also used in other components like in List and GroupBox","name":"UIKit Content Background colors","url":"https://exploreswiftui.com/library/color/uikit-content-background-colors","breadcrumb":{"@id":"https://exploreswiftui.com/library/color/uikit-content-background-colors#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/color/uikit-content-background-colors"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/color/uikit-content-background-colors#article","dateModified":"2025-05-29T10:20:52.091Z","datePublished":"2025-05-29T10:20:12.336Z","description":"The UIKit colors that are also used in other components like in List and GroupBox","headline":"UIKit Content Background colors","inLanguage":"en-US","name":"UIKit Content Background colors","thumbnailUrl":"https://exploreswiftui.com/api/images/13/variants/53?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/color/uikit-content-background-colors","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/color/uikit-content-background-colors#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/color/uikit-content-background-colors#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/uikit/ui-element-colors#Standard-content-background-colors","codeSampleType":"full example","description":"The UIKit colors that are also used in other components like in List and GroupBox","name":"UIKit Content Background colors SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"VStack {\n  List {\n    Section {\n      Text(\"content\")\n    }\n  }\n  .frame(maxHeight: 50)\n  HStack {\n    smallRect\n    // can also be used as inverted text color\n      .foregroundStyle(Color(.systemBackground))\n    smallRect\n    // GroupBox content backgroud\n      .foregroundStyle(Color(.secondarySystemBackground))\n    smallRect\n      .foregroundStyle(Color(.tertiarySystemBackground))\n    smallRect\n    // can also be used as inverted text color\n    // List background\n      .foregroundStyle(Color(.systemGroupedBackground))\n    smallRect\n    // List content background\n      .foregroundStyle(Color(.secondarySystemGroupedBackground))\n    smallRect\n      .foregroundStyle(Color(.tertiarySystemGroupedBackground))\n  }\n  GroupBox {\n    Text(\"content\")\n  }\n  .frame(maxHeight: 50)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Color"},{"@type":"Thing","name":"UIKit Content Background colors"}]},{"@id":"https://exploreswiftui.com/library/color/uikit-content-background-colors#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Color","item":"https://exploreswiftui.com/library/color","position":2},{"@type":"ListItem","name":"UIKit Content Background colors","item":"https://exploreswiftui.com/library/color/uikit-content-background-colors","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/13/variants/53?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/13/variants/53?v=1790073478842&r=2"}]}
```