#0240CC
Color Details
HEX
#0240CC
RGB
rgb(2, 64, 204)
HSL
hsl(222, 98%, 40%)
CMYK
cmyk(99%, 69%, 0%, 20%)
Best text on this color
#FFFFFF (CR 8.05:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #0240CC
#0240CC converts to RGB(2, 64, 204) and HSL(222, 98%, 40%). 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).
#0240CC FAQs
What is the RGB value of #0240CC?
RGB: 2, 64, 204. Copy as CSS:
rgb(2, 64, 204)
Is #0240CC a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #0240CC?
Complement: #ca8e02.
Does #0240CC have good contrast on white or black?
On white: 8.05:1 (AAA (normal text)).
On black: 2.61:1 (Fails AA).