On this page
The name is slippery. Some sources give ocean blue as , others use or , all greener and more tropical. This page covers only: its codes, close neighbors, palettes, contrast ratios, and how it behaves on screens, walls and paper.
Ocean Blue Hex, RGB, HSL and CMYK Codes
The hex code splits into three pairs: 4F is 79 red, 42 is 66 green and B5 is 181 blue. Blue carries about 71% of the channel range, red 31% and green 26%. Red sits slightly above green, and that small gap is what tilts the color toward violet.
| Format | Value |
|---|---|
| HEX | |
| RGB | rgb(79, 66, 181) |
| RGB percent | 31%, 26%, 71% |
| HSL | hsl(247, 47%, 48%) |
| HSV | 247°, 64%, 71% |
| CMYK (plain conversion) | 56%, 64%, 0%, 29% |
| Decimal | 5194421 |
The hue of 247° is just past pure blue at 240°. A saturation of 47% keeps it from looking neon, and a lightness of 48% puts it near the middle of the scale. The CMYK line is a simple formula result, not a press recipe, so treat it as a starting point (more on that in the printing section).
What Ocean Blue Looks Like and Where the Name Comes From
On a screen, looks like a deep periwinkle or a dusky sapphire. It is rich without being loud, and it has none of the green that makes a sea or teal blue feel watery. If you picture the open ocean at dusk, with the last light turning the water slightly purple, you are close.
Color databases do not agree on its family. One classifies it as a shade of blue-magenta, while another files it under indigo. That disagreement is the honest answer: it lives on the border, and context decides which side you see.
The name has a pearly past. It traces back to a Crayola crayon called Ocean Blue Pearl, and the screen code is a flat estimate that loses the pearly shine. Keep that in mind if you ever want to reproduce the effect in a metallic or pearlescent finish, since a plain hex cannot carry it.
If a swatch looks teal or sky blue, it is a different "ocean blue". has more red than green, so it leans violet.
Ocean Blue Beside Similar Blues and Purples
Neighbors are the fastest way to judge a color, and this one has several. Here is how compares with the ones people most often confuse it with:
- Slate Blue is lighter and brighter, with a friendlier, more playful mood.
- Dark Slate Blue is darker and grayer, better for backgrounds.
- Royal Blue is a cleaner blue with almost no violet.
- Indigo is far deeper and clearly purple.
- Cobalt Blue is plainer, cooler and slightly greener.
If you want the icy, airy side of blue instead, Glacier Blue is the place to look. If the violet is what bothers you and you want a more serious, near-black blue, Dark Navy is the safer pick. Ocean Blue sits between the two moods: more expressive than navy, more grounded than a pastel.
Shades and Tints of Ocean Blue
A usable color system needs lighter and darker steps. I built these by mixing with white for tints and with black for shades, in 20% steps, then rounding to whole RGB values:
- 20% tint: , for hover highlights on dark surfaces
- 40% tint: , for secondary icons and chart fills
- 60% tint: , for readable text on dark backgrounds
- 80% tint: , for badges, table stripes and soft panels
- 20% shade: , for button hover and pressed states
- 40% shade: , for headers and footers
- 60% shade: , for near-black text and deep backgrounds
Mixing with black or white shifts lightness without changing hue, so every step still reads as a relative of the original. For richer results, nudge the dark shades slightly toward blue and the light tints slightly toward pink. It keeps the scale from looking gray and flat.
Palettes and Color Combinations With Ocean Blue
The palette maker above builds monochrome, analogous, complementary, triadic and split palettes from , and each one has a different use. The complement is , an olive-lime that makes the blue glow. The triadic partners are (a brick red) and (a fresh green). Analogous neighbors are and , and the split complements are and .
Monochrome scale for app interfaces, dashboards and calm landing pages.
A cool mint accent on slate and ice white, good for wellness brands.
Complementary olive-lime against deep blue for posters and event graphics.
Analogous blues and violet for gradients, hero banners and book covers.
In practice, I rarely use full harmonies at equal strength. A safer formula is 60% neutral, 30% ocean blue and 10% accent. Light neutrals like #F4F4F4 keep it crisp, and an accent from the harmony list supplies the spark.
Some pairings deserve a closer look. A cool green-leaning mint softens the violet and gives a spa-like feel, and the mint and blue color scheme shows how far that idea stretches. For warmth, metallic accents are natural partners, and a muted gold against this blue looks expensive without trying. Orange-red accents work, but keep them tiny.
Using Ocean Blue in Web and UI Design
Ocean Blue is a good primary action color. It is dark enough to carry white text and light enough to stay friendly beside a dark theme. Here is a minimal setup using the scale above:
:root {
--ocean-blue: #4F42B5;
--ocean-blue-dark: #3F3591;
--ocean-blue-soft: #DCD9F0;
}
.button { background: var(--ocean-blue); color: #fff; }
.button:hover { background: var(--ocean-blue-dark); }
.badge { background: var(--ocean-blue-soft); color: var(--ocean-blue); }
.hero { background: linear-gradient(135deg, #4F42B5, #426EB5); }
The gradient runs from ocean blue into its analogous neighbor, so it stays smooth and does not pass through a muddy midpoint. Gradients between very different hues, like blue to orange, often gray out in the middle, so keep them close on the wheel.
Try this: Set a button to with white text, then add a badge with a background and text. View both on your phone at low brightness and see which one you can read faster.
Is Ocean Blue Accessible? WCAG Contrast Ratios
I calculated these with the WCAG relative luminance formula. White on gives 7.56:1, which passes AA (4.5:1) and AAA (7:1) for normal text. Black on the same blue gives only 2.78:1, so dark text on an ocean blue button is a mistake. Ocean blue text on #F4F4F4 measures about 6.87:1, enough for AA body text, and on the 80% tint it reaches about 5.48:1.
Which text color is the best choice on a solid #4F42B5 button?
White gives 7.56:1 on this blue, while black manages only 2.78:1 and dark slate about 1.53:1.
Dark mode is where it breaks. Ocean blue on a dark slate like #36393E is only about 1.53:1, which fails even the 3:1 minimum for large text and interface parts. On a dashboard project I once found chart labels in this kind of blue were unreadable on a dark background. Swapping them to the 60% tint , which gives about 5.85:1 on , fixed it without changing the brand feel.

Two more habits help. Do not rely on the blue alone to mark links, since many people see violet blues differently, so add underlines or icons. And check every state: hover, focus and disabled colors each need their own ratio.
Ocean Blue in Branding, Fashion and Art
Violet-leaning blues feel a little more creative than navy and a little less corporate. I used a near-identical blue as the primary color for a meditation app, where pure blue felt cold and purple felt too mystical. It worked because it signals calm and trust at once. Those are my design observations from client work rather than universal rules, so test with your own audience.
In fashion, it suits silk, knitwear, velvet and leather accessories. Camel, tan and chocolate balance it well, and the brown and blue palette page lays out these pairings in detail. Cream or soft gray keeps an outfit relaxed, while black makes it heavier and more formal.
For artists, you can approximate ocean blue by mixing ultramarine with a little white and the smallest touch of a violet or crimson. Add red slowly. A pinhead too much turns it from ocean blue into plum, and you cannot take it back out.
Ocean Blue for Interiors and Paint
On walls, is a bold choice. Its estimated light reflectance value is about 8.9%, calculated from the digital swatch rather than measured from real paint. In plain terms, it absorbs most of the light, so a room with this color on all four walls will feel enclosed unless it has strong daylight.
It works best as an accent: one wall behind a bed, a velvet sofa, a door, or ceramic tiles. Pair it with a cool white such as #F5FCFF on the other walls, add natural oak or walnut, and finish with brushed brass or warm lamp light.
Never choose paint from a screen. Take the hex to a paint shop for a scan, then paint a large sample board and look at it in morning light and in the evening. Violet blues shift more than most colors under warm bulbs, and a swatch that looked perfect at noon can turn gray at night.
Printing Ocean Blue Without Surprises
The plain CMYK conversion is cmyk(56%, 64%, 0%, 29%), but screens can show more vivid violet blues than CMYK inks reproduce. I once sent a similar blue to a printer using those naive numbers, and the proof came back flatter and a little grayer than my screen. We fixed it by asking for a spot color match and moving to coated stock.
Why can a printed ocean blue look duller than it does on your screen?
Screens mix light and can show vivid violet blues that CMYK inks can only approximate.
One database suggests Pantone 2367 C as the closest match. Treat that as a pointer, then compare a physical swatch book against your proof rather than trusting any listing.
- Convert with the printer’s own ICC profile, not a generic one.
- Request a hard-copy proof before the full run.
- Choose coated paper for the richest result, since uncoated stock mutes violets.
- For logos, specify a spot ink so the color stays consistent.
Colors close to ocean blue
Ocean Blue Color: questions people ask
What is the hex code for ocean blue?
On this page ocean blue is #4F42B5, which is rgb(79, 66, 181). The name is not standardized, so other palettes use greener hex codes such as #0077BE or #009DC4 for the same name. Always copy the hex, not the name.
Is ocean blue more blue or purple?
It is a blue with a violet lean. The hue is 247°, only 7° past pure blue at 240°, so it reads as blue in most settings and shows its purple side next to true blues like #4169E1.
What colors go well with ocean blue?
Soft neutrals such as #F4F4F4 and #F5FCFF, cool mint like #42B589, warm camel and brass, and its complement #A8B542 for a bold contrast. Dark slate #36393E works as a grounding color.
Can I use white text on ocean blue?
Yes. White on #4F42B5 has a contrast ratio of 7.56:1, which passes WCAG AA and AAA for normal text. Black text on the same blue fails at 2.78:1.
What is the CMYK value of ocean blue?
A plain mathematical conversion gives cmyk(56%, 64%, 0%, 29%). Real print results depend on the paper and ink profile, so ask for a proof or a spot color match.
Keep exploring
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes
- Lavender Color: Hex Code, RGB and Palettes
- Mint Green Color: Hex Code, RGB and Palettes
- Cream Color: Hex Code, RGB and Palettes
- Azure Blue Color: Hex Code, RGB and Palettes
- Pink and Purple Color Combination: Palettes and Hex Codes
- Skin Tone Hex Codes: Realistic Skin Color Palettes