This will apply to upstream Darktable as to Ansel since they share most of their color pipeline. The following procedure will help you troubleshoot your color issues, whether it is inconsistent appearance between export vs. preview, or between screen vs. print, or between 2 apps.
Setup your desktop properly The inherent problem of color is it exists only as a perception, and that perception is highly contextual and fluid. If I take any color patch and display it over a white, middle-grey or black background, it will not appear the same even though a colorimeter would confirm it’s the exact same color.
mindmap root((COLOR)) color appearance model uniform color space chromaticity U, V a, b lightness L delta E chromatic adaptation transform illuminant color reproduction index color temperature surround lighting background lightness dimensions Munsell hue chroma value natural color system blackness saturation hue CIE lightness brightness saturation chroma colorfulness hue measure colorimetry tristimulus sensor Luther-Ives criterion metamerism dynamic range noise mosaicing Bayer XTrans zipper artifacts spaces rgb(RGB) HSV HSL LMS Yrg XYZ Yxy Yuv Ych CYM CYMK primaries cone cells LED ITU BT.