Export

Code

/* Ocean Blue — colorset.net */
:root {
  --color-1: #4682B4;
  --color-2: #5F9EA0;
  --color-3: #87CEEB;
  --color-4: #B0E0E6;
  --color-5: #F0F8FF;

  --color-bg: #F0F8FF;
  --color-surface: #E7EFF6;
  --color-border: #CCD6E0;
  --color-text: #19507A;
  --color-muted: #576C80;
  --color-primary: #3D79AA;
  --color-on-primary: #FFFFFF;
  --color-accent: #639196;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #03111E;
    --color-surface: #0B1B29;
    --color-border: #1C3041;
    --color-text: #F0F8FF;
    --color-muted: #858C93;
    --color-primary: #3D79AA;
    --color-on-primary: #FFFFFF;
    --color-accent: #B0E0E6;
    --color-on-accent: #03111E;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundfrom palette · color 5adjusted for contrast · from #4682B4
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #4682B4from palette · color 5
Muted textderivedderived
Primaryadjusted for contrast · from #4682B4adjusted for contrast · from #4682B4
On primaryderivedderived
Accentadjusted for contrast · from #5F9EA0from palette · color 4
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.93:1AAA pass 4.5:1
Text on surface7.32:1AAA pass 4.5:1
Muted text on background5.07:1AA pass 4.5:1
Label on primary4.65:1AA pass 4.5:1
Label on accent6.02:1AA pass 4.5:1
Primary on background4.34:1AA Large pass 3:1
Accent on background3.25:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background17.75:1AAA pass 4.5:1
Text on surface16.27:1AAA pass 4.5:1
Muted text on background5.59:1AA pass 4.5:1
Label on primary4.65:1AA pass 4.5:1
Label on accent13.29:1AAA pass 4.5:1
Primary on background4.09:1AA Large pass 3:1
Accent on background13.29:1AAA pass 3:1

Every color on every color

Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.

Every color on every color
Background / Text#4682B4 (Text 1)#5F9EA0 (Text 2)#87CEEB (Text 3)#B0E0E6 (Text 4)#F0F8FF (Text 5)
#4682B4Same color1.35—2.36—2.87—3.83AA Large
#5F9EA01.35—Same color1.75—2.13—2.84—
#87CEEB2.36—1.75—Same color1.22—1.62—
#B0E0E62.87—2.13—1.22—Same color1.34—
#F0F8FF3.83AA Large2.84—1.62—1.34—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#4682B4#5F9EA0#87CEEB#B0E0E6#F0F8FF

Variations

About Ocean Blue

No single hue dominates Ocean Blue: blue carries about 51% of the color weight, shared with teal and neutral, and light blue #87CEEB sits in the middle of the range. The 4 chromatic colors span 47° of hue, close enough for blue and light teal to read as one family. Lightness spans 59% (#4682B4) to 98% (#F0F8FF), a moderate range; text roles may need slight darkening for full contrast. Saturation is low (mean OKLCH chroma 0.062, peaking at 0.099 in #4682B4); the colors feel soft and muted. As a UI theme it uses #3D79AA for primary actions and #639196 as the accent; dark mode sits on #03111E with #F0F8FF text (17.8:1). Try it for illustration, data visualization and lifestyle blogs, letting blue #4682B4 carry the key actions.

Ocean Blue color palette: #4682B4, #5F9EA0, #87CEEB, #B0E0E6, #F0F8FF
Share image for Ocean Blue

Gradients in similar colors