PreviewingGo to this paletteOpen in generator
Code
/* Marine Blue — colorset.net */
:root {
--color-1: #002D5C;
--color-2: #004080;
--color-3: #0053A4;
--color-4: #0066C8;
--color-5: #3399FF;
--color-bg: #F1F8FF;
--color-surface: #E4EFFB;
--color-border: #CAD6E5;
--color-text: #042D59;
--color-muted: #5A6B81;
--color-primary: #0066C8;
--color-on-primary: #FFFFFF;
--color-accent: #004080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #05101E;
--color-surface: #0E1A29;
--color-border: #202F42;
--color-text: #90A9C5;
--color-muted: #708399;
--color-primary: #0066C8;
--color-on-primary: #FFFFFF;
--color-accent: #3D689C;
--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 #3399FF | adjusted for contrast · from #002D5C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #002D5C | adjusted for contrast · from #3399FF |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0066C8 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.86:1 | AAA pass 4.5:1 | |
| Text on surface | 11.83:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 10.27:1 | AAA pass 4.5:1 | |
| Primary on background | 5.25:1 | AA pass 3:1 | |
| Accent on background | 9.59:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.40:1 | AA Large pass 3:1 | |
| Accent on background | 3.33: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 | #002D5C (Text 1) | #004080 (Text 2) | #0053A4 (Text 3) | #0066C8 (Text 4) | #3399FF (Text 5) |
|---|---|---|---|---|---|
| #002D5C | Same color | 1.34— | 1.81— | 2.44— | 4.67AA |
| #004080 | 1.34— | Same color | 1.36— | 1.83— | 3.49AA Large |
| #0053A4 | 1.81— | 1.36— | Same color | 1.35— | 2.57— |
| #0066C8 | 2.44— | 1.83— | 1.35— | Same color | 1.91— |
| #3399FF | 4.67AA | 3.49AA Large | 2.57— | 1.91— | Same color |
Shades
Shades and tints (50–950)
