PreviewingGo to this paletteOpen in generator
Code
/* Blue Ocean — colorset.net */
:root {
--color-1: #0C4A6E;
--color-2: #075985;
--color-3: #0369A1;
--color-4: #0284C7;
--color-5: #0EA5E9;
--color-bg: #EFF8FF;
--color-surface: #E2F0FA;
--color-border: #C6D8E4;
--color-text: #0C4A6E;
--color-muted: #566E80;
--color-primary: #007BBA;
--color-on-primary: #FFFFFF;
--color-accent: #075985;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #02111D;
--color-surface: #0A1B28;
--color-border: #1B3040;
--color-text: #89ABC2;
--color-muted: #6B8596;
--color-primary: #007BBA;
--color-on-primary: #FFFFFF;
--color-accent: #346C92;
--color-on-accent: #FFFFFF;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #0EA5E9 | adjusted for contrast · from #0C4A6E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #0EA5E9 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #0284C7 | adjusted for contrast · from #0284C7 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0369A1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.80:1 | AAA pass 4.5:1 | |
| Text on surface | 8.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 7.56:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 7.04:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 4.13:1 | AA Large pass 3:1 | |
| Accent on background | 3.37:1 | AA Large 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.
| Background / Text | #0C4A6E (Text 1) | #075985 (Text 2) | #0369A1 (Text 3) | #0284C7 (Text 4) | #0EA5E9 (Text 5) |
|---|---|---|---|---|---|
| #0C4A6E | Same color | 1.25— | 1.59— | 2.31— | 3.41AA Large |
| #075985 | 1.25— | Same color | 1.27— | 1.85— | 2.73— |
| #0369A1 | 1.59— | 1.27— | Same color | 1.45— | 2.14— |
| #0284C7 | 2.31— | 1.85— | 1.45— | Same color | 1.48— |
| #0EA5E9 | 3.41AA Large | 2.73— | 2.14— | 1.48— | Same color |
Shades
Shades and tints (50–950)
