PreviewingGo to this paletteOpen in generator
Code
/* Chambray Blue — colorset.net */
:root {
--color-1: #EBF8FF;
--color-2: #BEE3F8;
--color-3: #90CDF4;
--color-4: #63B3ED;
--color-5: #4299E1;
--color-bg: #EBF8FF;
--color-surface: #FAFDFF;
--color-border: #CFE0E9;
--color-text: #235782;
--color-muted: #5D7387;
--color-primary: #3B93DA;
--color-on-primary: #000000;
--color-accent: #838F95;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #03101E;
--color-surface: #0B1B29;
--color-border: #1D3041;
--color-text: #EBF8FF;
--color-muted: #818D93;
--color-primary: #4299E1;
--color-on-primary: #03101E;
--color-accent: #BEE3F8;
--color-on-accent: #03101E;
}
}
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 | from palette · color 1 | adjusted for contrast · from #4299E1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4299E1 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4299E1 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4299E1 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.04:1 | AAA pass 4.5:1 | |
| Text on surface | 7.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.55:1 | AA pass 4.5:1 | |
| Label on primary | 6.37:1 | AA pass 4.5:1 | |
| Label on accent | 6.33:1 | AA pass 4.5:1 | |
| Primary on background | 3.05:1 | AA Large pass 3:1 | |
| Accent on background | 3.07:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.69:1 | AAA pass 4.5:1 | |
| Text on surface | 16.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.62:1 | AA pass 4.5:1 | |
| Label on primary | 6.27:1 | AA pass 4.5:1 | |
| Label on accent | 14.16:1 | AAA pass 4.5:1 | |
| Primary on background | 6.27:1 | AA pass 3:1 | |
| Accent on background | 14.16: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 | #EBF8FF (Text 1) | #BEE3F8 (Text 2) | #90CDF4 (Text 3) | #63B3ED (Text 4) | #4299E1 (Text 5) |
|---|---|---|---|---|---|
| #EBF8FF | Same color | 1.25— | 1.59— | 2.11— | 2.82— |
| #BEE3F8 | 1.25— | Same color | 1.27— | 1.69— | 2.26— |
| #90CDF4 | 1.59— | 1.27— | Same color | 1.33— | 1.78— |
| #63B3ED | 2.11— | 1.69— | 1.33— | Same color | 1.34— |
| #4299E1 | 2.82— | 2.26— | 1.78— | 1.34— | Same color |
Shades
Shades and tints (50–950)
