Kotlin Color get Hex
import androidx.compose.ui.graphics.Color
fun main() {
val color = Color(0xFF3366AA)
val hex = Integer.toHexString(color.toArgb()).substring(2).uppercase()
println("Hex representation of the color: #$hex")
}
import androidx.compose.ui.graphics.Color
fun main() {
val color = Color(0xFF3366AA)
val hex = Integer.toHexString(color.toArgb()).substring(2).uppercase()
println("Hex representation of the color: #$hex")
}