How to convert rgb values to blender values ??

How do I convert the rgb values from a paint program to match up with the values of the rgb s in blender and vice versa ??

divide by 255

[or put the hex value in the thing you get when you hit N in some windows]