Solution 1:

Surface uses MaterialTheme.colorScheme.surface by default, they also have a new tonalElevation property which you can read about here.

The gist of it is that increasing the tonal elevation changes the color automatically, try it yourself:

Surface(tonalElevation = 5.dp) {
    // content
}