Ocean Blue Hex Code — #4F42B5
RGB, HSL, and CMYK values for Ocean Blue.
Last updated: April 6, 2026
Ocean Blue Color Values
| Format | Value |
|---|---|
| HEX | #4F42B5 |
| RGB | rgb(79, 66, 181) |
| HSL | hsl(247, 47%, 48%) |
| CMYK | cmyk(56%, 64%, 0%, 29%) |
About Ocean Blue
Color psychology: Depth, mystery, adventure.
Ocean Blue (#4F42B5) is a medium shade of blue with a hue angle of 247° on the color wheel, 47% saturation, and 48% lightness. It's commonly used in web design, graphic design, and branding where depth, mystery, adventure are desired associations.
In color theory, Ocean Blue sits in the cool section of the spectrum. Its moderate saturation gives it a balanced, professional appearance suitable for both text and backgrounds.
When to Use Ocean Blue in Design
Web Design
Use Ocean Blue for headings, links, or accent elements against light backgrounds. Dark colors like this provide strong contrast and draw the eye to important content.
Branding & Logo
Ocean Blue conveys depth, mystery, adventure — consider it for brands that want to project these qualities. Test it at small sizes (favicon, social avatar) to ensure it remains recognizable.
Print Design
Use the CMYK values (C:56% M:64% Y:0% K:29%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.
UI / UX Design
Dark colors like Ocean Blue are effective for primary buttons, navigation bars, and text. Use a lighter tint (increase HSL lightness to 90%+) for hover backgrounds.
How to Use Ocean Blue in CSS
/* Using HEX */ color: #4F42B5; background-color: #4F42B5; /* Using RGB */ color: rgb(79, 66, 181); /* Using HSL — best for creating variations */ color: hsl(247, 47%, 48%); /* Transparent overlay (50% opacity) */ background-color: rgba(79, 66, 181, 0.5); /* Lighter variant for hover states */ background-color: hsl(247, 47%, 58%); /* Darker variant for active states */ background-color: hsl(247, 47%, 38%);
HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Ocean Blue without changing its core hue or saturation.
Colors That Go With Ocean Blue
Complementary
Analogous
Triadic
Similar Shades of Blue
Frequently Asked Questions
What is the hex code for Ocean Blue?
What is Ocean Blue in RGB and when should I use RGB?
How to use Ocean Blue in CSS with different color formats?
What is the HSL value of Ocean Blue and why is HSL useful for designers?
What is the CMYK value of Ocean Blue for print design?
What colors pair well with Ocean Blue in design projects?
Is Ocean Blue (#4F42B5) accessible for web design and WCAG compliant?
Was this page helpful?
Written by
Tamanna Tasnim
Senior Full Stack Developer
Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.