The simplest way to do it right now, in a brand new project, would be to use Jetpack Compose to draw a box, clip it to the Rectangle Shape and set the color to your RGB color like so:
val color = Color(0, 255, 0, 255)
Box(modifier = Modifier.size(100.dp).clip(RectangleShape).background(color))...