Ocean Blue Color Palette
Ocean Blue Color Palette built around #4F42B5, a dark cool blue anchor (WCAG contrast 2.78:1 against black). The set combines a light tint + a deep shade + a softened complement + a neutral ground so any palette position has a text-safe pairing.
Semantic roles
Assigned deterministically: lightest = background, darkest = text, most saturated = primary.
| background | #C5B5F1 | |
| surface | #949B5C | |
| text | #28216F | |
| text-muted | #4F42B5 | |
| primary | #4F42B5 | |
| secondary | #949B5C | |
| accent | #6453BD |
CSS variables
:root {
--background: #c5b5f1;
--surface: #949b5c;
--text: #28216f;
--text-muted: #4f42b5;
--primary: #4f42b5;
--secondary: #949b5c;
--accent: #6453bd;
}Accessibility matrix
Text color (rows) on background (columns). Green = WCAG AA pass for normal text (≥4.5:1).
| Text \ BG | #4F42B5 | #C5B5F1 | #28216F | #949B5C | #6453BD |
|---|---|---|---|---|---|
| #4F42B5 | 1.0 | 4.0 | 1.8 | 2.6 | 1.3 |
| #C5B5F1 | 4.0 | 1.0 | 7.3 | 1.6 | 3.2 |
| #28216F | 1.8 | 7.3 | 1.0 | 4.6 | 2.3 |
| #949B5C | 2.6 | 1.6 | 4.6 | 1.0 | 2.0 |
| #6453BD | 1.3 | 3.2 | 2.3 | 2.0 | 1.0 |
Under deuteranopia
Machado et al. (2009) simulation, severity 1.0 — approximation, not a medical tool.
Colors in this palette
Similar palettes
FAQ
How do I use the ocean blue color palette in CSS?
Copy the CSS variables below into :root and use var(--primary), var(--background) etc. Full palette: #4F42B5, #C5B5F1, #28216F, #949B5C, #6453BD.
Do these colors pass accessibility checks?
See the WCAG matrix on this page: every text-on-background pairing with ratio ≥ 4.5 passes AA for normal text; ≥ 3 passes AA for large text and UI components.