---
title: "darkColors"
description: "Creates a complete color definition for the
[Material color specification](https://material.io/design/color/the-color-system.html#color-theme-creation)
using the default dark theme values.

Note: [secondaryVariant] is typically the same as [secondary] in dark theme since contrast levels
are higher, and hence there is less need for a separate secondary color."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun darkColors(
    primary: Color = Color(0xFFBB86FC),
    primaryVariant: Color = Color(0xFF3700B3),
    secondary: Color = Color(0xFF03DAC6),
    secondaryVariant: Color = secondary,
    background: Color = Color(0xFF121212),
    surface: Color = Color(0xFF121212),
    error: Color = Color(0xFFCF6679),
    onPrimary: Color = Color.Black,
    onSecondary: Color = Color.Black,
    onBackground: Color = Color.White,
    onSurface: Color = Color.White,
    onError: Color = Color.Black,
): Colors
```


Creates a complete color definition for the
`Material color specification`(https://material.io/design/color/the-color-system.html#color-theme-creation)
using the default dark theme values.

Note: `secondaryVariant` is typically the same as `secondary` in dark theme since contrast levels
are higher, and hence there is less need for a separate secondary color.



