Hex color from figma-plugin-helpers to Figma

Hi,

I’m using figma-plugin-helpers for one of our plugins.

Given a hex color #010b1d I convert it to “Figma RBG” by using hexToFigmaRGB("#010b1d") then apply the color to a node in Figma. The end color applied to the node is #000A22 which is very similar but not exactly the same. I assume is due to the math Figma does to convert from “Figma RGB” to “Web RGB”.

Is there any way I can ensure the color applied in Figma is my source value?

Thanks.
Regards