PreviewingGo to this paletteOpen in generator
Code
/* Trust Blue — colorset.net */
:root {
--color-1: #1A5490;
--color-2: #2874A6;
--color-3: #5DADE2;
--color-4: #85C1E9;
--color-5: #D6EAF8;
--color-bg: #F2F8FC;
--color-surface: #E8EEF3;
--color-border: #CDD6DD;
--color-text: #264F7D;
--color-muted: #5A6C81;
--color-primary: #2874A6;
--color-on-primary: #FFFFFF;
--color-accent: #798B98;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #04101E;
--color-surface: #0D1A29;
--color-border: #1F2F41;
--color-text: #D6EAF8;
--color-muted: #738692;
--color-primary: #2874A6;
--color-on-primary: #FFFFFF;
--color-accent: #85C1E9;
--color-on-accent: #04101E;
}
}
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 #D6EAF8 | adjusted for contrast · from #1A5490 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1A5490 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #2874A6 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.07:1 | AA pass 4.5:1 | |
| Label on accent | 5.96:1 | AA pass 4.5:1 | |
| Primary on background | 4.74:1 | AA pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.47:1 | AAA pass 4.5:1 | |
| Text on surface | 14.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.07:1 | AA pass 4.5:1 | |
| Label on accent | 9.84:1 | AAA pass 4.5:1 | |
| Primary on background | 3.77:1 | AA Large pass 3:1 | |
| Accent on background | 9.84: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 | #1A5490 (Text 1) | #2874A6 (Text 2) | #5DADE2 (Text 3) | #85C1E9 (Text 4) | #D6EAF8 (Text 5) |
|---|---|---|---|---|---|
| #1A5490 | Same color | 1.52— | 3.15AA Large | 3.98AA Large | 6.26AA |
| #2874A6 | 1.52— | Same color | 2.06— | 2.61— | 4.10AA Large |
| #5DADE2 | 3.15AA Large | 2.06— | Same color | 1.26— | 1.99— |
| #85C1E9 | 3.98AA Large | 2.61— | 1.26— | Same color | 1.57— |
| #D6EAF8 | 6.26AA | 4.10AA Large | 1.99— | 1.57— | Same color |
Shades
Shades and tints (50–950)
