In official Material Design 3 resources do not specify how to use these (surface+x%primary) colors in xml layouts.
I tried using these colors in code:
protected void onCreate(Bundle savedInstanceState) {
...
getWindow().setNavigationBarColor(SurfaceColors.SURFACE_2.getColor(this));
...
}