PreviewingGo to this paletteOpen in generator
Code
/* Petrol Cyan — colorset.net */
:root {
--color-1: #164E63;
--color-2: #0E7490;
--color-3: #0891B2;
--color-4: #06B6D4;
--color-5: #22D3EE;
--color-bg: #E8FBFF;
--color-surface: #DFF1F5;
--color-border: #C3DADE;
--color-text: #164E63;
--color-muted: #516E7B;
--color-primary: #00819F;
--color-on-primary: #FFFFFF;
--color-accent: #004D60;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #031218;
--color-surface: #0B1C23;
--color-border: #1C313A;
--color-text: #98C6CF;
--color-muted: #66888F;
--color-primary: #00819F;
--color-on-primary: #FFFFFF;
--color-accent: #22D3EE;
--color-on-accent: #031218;
}
}
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 #22D3EE | adjusted for contrast · from #164E63 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #22D3EE |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #0E7490 | adjusted for contrast · from #0E7490 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #164E63 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.54:1 | AAA pass 4.5:1 | |
| Text on surface | 7.83:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 9.42:1 | AAA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 8.82:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.25:1 | AAA pass 4.5:1 | |
| Text on surface | 9.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 10.53:1 | AAA pass 4.5:1 | |
| Primary on background | 4.21:1 | AA Large pass 3:1 | |
| Accent on background | 10.53:1 | AAA 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 | #164E63 (Text 1) | #0E7490 (Text 2) | #0891B2 (Text 3) | #06B6D4 (Text 4) | #22D3EE (Text 5) |
|---|---|---|---|---|---|
| #164E63 | Same color | 1.70— | 2.48— | 3.75AA Large | 5.04AA |
| #0E7490 | 1.70— | Same color | 1.46— | 2.21— | 2.96— |
| #0891B2 | 2.48— | 1.46— | Same color | 1.52— | 2.04— |
| #06B6D4 | 3.75AA Large | 2.21— | 1.52— | Same color | 1.34— |
| #22D3EE | 5.04AA | 2.96— | 2.04— | 1.34— | Same color |
Shades
Shades and tints (50–950)
