I believe you need to define a CSS variable in color_definitions.scss.
color_definitions.scss
For example:
:root { --bg-custom: dark-light-choose(#f0f2f5, #3a3b3c); }
Then you can use:
background: var(--bg-custom) !important;