#2A7DFC
Color Details
HEX
#2A7DFC
RGB
rgb(42, 125, 252)
HSL
hsl(216, 97%, 58%)
CMYK
cmyk(83%, 50%, 0%, 1%)
Best text on this color
#000000 (CR 5.44:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #2A7DFC
#2A7DFC converts to RGB(42, 125, 252) and HSL(216, 97%, 58%). This page provides quick readability checks, related hues (complementary and analogous), and ready-made palettes so you can drop the color into UI components, images, or CSS immediately.
Tip: Use the “Best text” chip above as a safe default foreground on this color (chosen by contrast ratio).
#2A7DFC FAQs
What is the RGB value of #2A7DFC?
RGB: 42, 125, 252. Copy as CSS:
rgb(42, 125, 252)
Is #2A7DFC a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #2A7DFC?
Complement: #fca92c.
Does #2A7DFC have good contrast on white or black?
On white: 3.86:1 (AA (large text)).
On black: 5.44:1 (AA (normal text)).