Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

283
Views
problem to convert RGB to HEX, problem only with the blue color

I'm trying to convert RGB to HEX and when i put numbers at the function the output is correct, but when i call the function in my code it doesn't work (just the **blue **color doesn't work).

my function:

const rgbToHex = (r, g, b) => { console.log( "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1) );

return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1); };

i tried the change the function several time but it still doesn't work the all code https://codepen.io/doron-david/pen/WNdgEOd

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!