#0E1E30
#22384E
#5E7A94
#040A12
Background
Primary Accent
Secondary
Body Text

Ocean Night Color Palette

#0E1E30 · #22384E · #5E7A94 · #040A12

Fail
WCAG Grade
1.2:1
Contrast Ratio
744
Saves
3,089
AI Copies
AI Prompt

Use #0E1E30 as the background. Use #22384E as the primary accent. Use #5E7A94 as secondary. Use #040A12 as body text/supporting color. Palette mood: Ocean Night — night, ocean, cool, moody.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Ocean Night color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).

Swatch Design Role HEX RGB CMYK HSL
Background
Luminance: 1.2%
14, 30, 48 71%, 37%, 0%, 81% 212°, 55%, 12%
Primary Accent
Luminance: 3.7%
34, 56, 78 56%, 28%, 0%, 69% 210°, 39%, 22%
Secondary
Luminance: 18.4%
94, 122, 148 36%, 18%, 0%, 42% 209°, 22%, 47%
Body Text
Luminance: 0.3%
4, 10, 18 78%, 44%, 0%, 93% 214°, 64%, 4%

Ocean Night Tints & Shades

Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the Ocean Night palette — click any swatch to copy its hex.

#0E1E30 gently saturated cyan-blue
#22384E gently saturated cyan-blue
#5E7A94 muted cyan-blue
#040A12 gently saturated cyan-blue

Ocean Night Palette Contrast Matrix (WCAG 2.1)

Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.

Text on Background Preview Ratio Grade Safe For
#040A12 on #5E7A94
Aa Sample Text
4.43:1 Fail Large headings, UI components
#5E7A94 on #040A12
Aa Sample Text
4.43:1 Fail Large headings, UI components
#5E7A94 on #0E1E30
Aa Sample Text
3.76:1 Fail Large headings, UI components
#0E1E30 on #5E7A94
Aa Sample Text
3.76:1 Fail Large headings, UI components
#5E7A94 on #22384E
Aa Sample Text
2.69:1 Fail Decorative use only
#22384E on #5E7A94
Aa Sample Text
2.69:1 Fail Decorative use only
#040A12 on #22384E
Aa Sample Text
1.65:1 Fail Decorative use only
#22384E on #040A12
Aa Sample Text
1.65:1 Fail Decorative use only
#22384E on #0E1E30
Aa Sample Text
1.40:1 Fail Decorative use only
#0E1E30 on #22384E
Aa Sample Text
1.40:1 Fail Decorative use only
#040A12 on #0E1E30
Aa Sample Text
1.18:1 Fail Decorative use only
#0E1E30 on #040A12
Aa Sample Text
1.18:1 Fail Decorative use only

Ocean Night Color Psychology & Meaning

The ocean at night has no horizon and no depth cues, only a black surface with the occasional pale break of a wave, and this palette is ocean night with starlit water. It feels disorienting and vast, the color of water that looks like sky.

Color Harmony: Analogous Scheme

The Ocean Night palette is built using a analogous relationship between its hues. This ensures that even with high-contrast accents, the overall scheme feels balanced and intentional.

Hue Wheel

A analogous palette is often preferred by professional designers because it creates a calm, serene atmosphere by using neighboring colors.

History & Design Context

At night the sea reflects very little light, and without a horizon or landmarks it is easy for a swimmer or small boat to lose orientation, which is why night navigation relies on instruments.

Best Design Use Cases

Use the ocean night for large surfaces, wave dark for links and buttons, starlit water for fine details, and sea black for text.

Industries This Palette Suits

Hotels and lounges, nightlife, film and television.

Colors That Pair Well With Ocean Night

Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.

orange

directly opposite #22384E on the wheel — the strongest accent for CTAs and highlights when you need maximum energy

blue

30° beside #22384E — a calm secondary that extends the palette without adding tension

tinted neutral

a paper-white carrying the palette's own hue — perfect for surfaces and dividers

Using Ocean Night Without Breaking Accessibility

  • Avoid #22384E for small UI elements on #0E1E30 — at 1.4:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
  • Don't set body copy in #040A12 on #0E1E30 — 1.2:1 fails WCAG AA; keep it for large decorative headings only.
  • Let #5E7A94 carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #22384E.

How to Implement the Ocean Night Color Scheme

To use this Ocean Night color palette in your web project, you can copy the following CSS variables or Tailwind CSS configuration. These roles ensure your UI maintains accessibility and visual hierarchy.

Option 1: CSS Variables

:root { 
  /* {name} Palette - ihatecolors.com */{'
'}  --color-bg: {colors[0]};{'
'}  --color-primary: {colors[1]};{'
'}  --color-secondary: {colors[2]};{'
'}  --color-text: {colors[3]};{'
'} {'}'}

Web Design Tip

Use #0E1E30 for the main background and #22384E for primary buttons. This creates a high-contrast focal point.

Accessibility Note

The contrast ratio between #040A12 and #0E1E30 is 1.18:1 (Fail). Ensure your body text remains legible.

Ocean Night Palette — Frequently Asked Questions

What are the hex codes in the Ocean Night color palette?

The Ocean Night palette contains #0E1E30, #22384E, #5E7A94, #040A12. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.

Is the Ocean Night color palette accessible (WCAG)?

Yes for its strongest pairings: #040A12 on #5E7A94 reaches 4.4:1 (Fail). For body text always keep a 4.5:1 ratio and for large UI elements 3:1 — the full contrast matrix above shows the exact score for every color-on-color combination in this palette.

What colors go well with the Ocean Night palette?

Beyond its own four colors, #7C5936, #282848, #EBEDF0 extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.

What mood does the Ocean Night palette create?

Ocean Night reads as night, ocean, cool. Gently saturated cyan-blue drives the personality, grounded by gently saturated cyan-blue — a combination that works best when the deep base gets most of the canvas.

Can I use the Ocean Night color palette commercially?

Yes. Individual color values can't be copyrighted, so the Ocean Night palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.

How do I add the Ocean Night palette to Tailwind or CSS?

Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from Ocean Night's exact values, including the tint and shade ramps shown above.

Similar Palettes

Live Preview
Generate Similar ✦
Skip to content