[android-components](../../index.md) / [mozilla.components.support.utils](../index.md) / [ColorUtils](index.md) / [isDark](./is-dark.md)

# isDark

`@JvmStatic fun isDark(color: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/ColorUtils.kt#L25)

Returns true if the color is dark enough that white text should be used on top of it.

