You could try acrylic paint
I used it on my LED of my soundblaster and it seems to work
(I did take it apart to get all around the LED)
It does need one or two more coats because it's still a bit to bright though.
But offcourse the soundcard stays cool, I don't know what some serious heat of a RAM module would do with this paint