Search Open Water Design
Color.
Every color has a role: the layer something lives on, the tone of what you read, what marks, what warns. A component asks for the role and the theme gives it its value.
Available Updated November 24, 2026
Roles, not values
A component asks for a color by what it does: the raised layer, text 2, the accent. It never writes a gray or a hex. Each theme gives every role its value, and contrast is measured on every layer.
| Level | What it is | Who uses it |
|---|---|---|
| The scale | The graphites and the system colors, in OKLCH with their fallback hex. | No one directly: each theme gives it a role. |
| The roles | Layers, text, accent, fills, lines, status, action, shadows, glass and charts, as --cu-*. | Components and pages. |
| The component | Each component’s tokens (cu.button.*, cu.field.*), pointing at the roles. | Its component. A theme rarely touches them. |
In use across flouvia.com, Flouvia OS and Ops: the layers, the text tones, the fills, the line, the accent, the focus and the status colors. The chart palette is in design, with its guide.
The graphite scale
Five grays with the canvas’s cool hue (286°). The number is its lightness in OKLCH: graphite-20 in the guide and graphite-20 in code.
| Graphite | Hex | Role | For |
|---|---|---|---|
| graphite-16 | #0e0e0f | Sunken | Code and frames for images and video. |
| graphite-20 | #161617 | Base | The page canvas. |
| graphite-23 | #1d1d1f | Raised | Cards; sheets and modals over the veil. |
| graphite-29 | #2c2c2e | Overlay | Menus, popovers and what sits inside a sheet. The ceiling. |
| graphite-97 | #f5f5f7 | Text | What you read on graphite. |
-
Lightness tells the distance
Two graphites 23 or more apart give 3:1. The number alone says how far apart they are.
-
Nothing above 29
Any higher and text 3, the link and the focus ring stop reaching their contrast.
-
No loose grays
A component never writes a gray: it asks for the layer or text tone it needs.
Layers
Sunken, base, raised and overlay. The container sets the layer, and whatever rests on something steps up one.
| Layer | Role | For |
|---|---|---|
| Sunken | --cu-layer-sunken | Code and media frames. |
| Base | --cu-layer-base | The page canvas. |
| Raised | --cu-layer-raised | Cards; sheets and modals over the veil. |
| Overlay | --cu-layer-overlay | Menus, popovers and what sits inside a sheet. |
-
The container sets the layer
With
data-cuenca-layer. Whatever rests on something paints its background with--cu-layer-next: raised on the base and overlay inside something raised. -
Overlay is the ceiling
What goes inside an overlay stays on it. There, status text gets lighter to stay at 4.5:1.
-
The veil isn’t a layer
--cu-veildims what sits behind a sheet or a modal; the sheet is raised, on top of it.
Text
Three tones for reading and one for what’s disabled, all translucent: the same four work on every layer.
| Tone | Role | Opacity | Worst case | For |
|---|---|---|---|---|
| Text | --cu-text | 100% | 12.7:1 | What you read: titles, body and values. |
| Text 2 | --cu-text-2 | 64% | 6.1:1 | Labels and secondary text; a field’s example and prefixes. |
| Text 3 | --cu-text-3 | 52% | 4.6:1 | Help, notes, counters and icons. |
| Disabled | --cu-text-disabled | 34% | Exempt | What can’t be used. WCAG exempts it, so 52% stays for reading only. |
-
Tone sets the hierarchy
What matters in text, what accompanies it in text 2 and what helps in text 3. Never a fourth gray for reading.
-
Disabled has its own tone
Without dimming the whole component: the label, the value and the icon take 34%.
-
More contrast, more light
With
prefers-contrast: more, text 2 rises to 69.5% (7:1 on overlay) and text 3 takes 64%.
Accent, link and focus
The blue of the isotype marks what’s active. Links use a lighter blue, one you can read.
| Role | Value | Worst case | For |
|---|---|---|---|
--cu-accent | #0977fa | 3.3:1 | Marks: the caret, the selection, a switch that’s on. It needs 3:1; as text it falls short. |
--cu-accent-fill | #0071f3 | 4.5:1 with white | An accent background with text on it, in --cu-on-accent. |
--cu-link | #5aa2ff | 5.3:1 | Links and informational text. |
--cu-focus | #0977fa | 3.3:1 | The focus ring: 2 px, 2 px apart, on every layer. |
Fills and lines
Four fills in even steps of light, a line that fades out and a border that appears only where it’s needed.
| Role | Dark | Light | For |
|---|---|---|---|
--cu-fill-1 | 4% | 3% | A row on hover; the disabled field. |
--cu-fill-2 | 8% | 6% | Fields at rest; the plain button on hover. |
--cu-fill-3 | 12% | 9% | The field on hover and in focus; the pill. |
--cu-fill-4 | 16% | 12% | The pill on hover or when pressed. |
--cu-separator | 8% | 9% | Between rows and sections; it fades out at the ends. |
--cu-border | 34.4% | 46.5% | Unchecked checkboxes and radios, and every field with more contrast: 3:1 on every layer. |
-
No white borders at rest
On graphite, depth comes from the layer and the fill. The 3:1 border appears only where a control needs it to be seen.
-
The fill tells the state
A control moves up one fill on hover and another when pressed: from 2 to 3 in a field, from 3 to 4 in the pill.
Status
Success, warning, error and information. Each with its text, its mark and its background, and always with an icon and a word.
| Status | Text | On overlay | Mark | Text worst case |
|---|---|---|---|---|
| Success | #30d158 | #30d158 | #30d158 | 4.6:1 |
| Warning | #ff9f0a | #ff9f0a | #ff9f0a | 4.5:1 |
| Error | #ff6961 | #ff8a81 | #ff453a | 4.7:1 |
| Information | #5aa2ff | #7ab4ff | #0977fa | 5.1:1 |
Each status has -text, -text-overlay, -solid (the dot or mark, at 3:1), -fill (16%) and -fill-hover (20%). The text’s worst case measures every layer, its status background and the hover one.
Action and brand
Flouvia’s primary action is white: it stands out by contrast, not by color. Flouvia Blue belongs to the brand and lives only in its theme.
| Role | Value | Contrast | For |
|---|---|---|---|
--cu-action | White, with #030409 on it | 20.4:1 | The filled button: the primary action. |
--cu-action-hover | #e8e8ed | 16.7:1 | The filled button on hover. |
--cu-danger | #d70015, with white on it | 5.3:1 | The destructive filled button. It doesn’t work as a mark on an overlay (2.5:1): use --cu-danger-solid. |
--cu-brand | Flouvia Blue, #0136d5, with white on it | 8.4:1 | The brand surface: the transition between pages and backgrounds with white text. |
-
The brand is a surface
Flouvia Blue goes behind things, with white text and a white focus ring (
--cu-focus-on-brand). On graphite it gives 2.1:1: never text, an icon or an accent. -
Only in the Flouvia theme
Flouvia Blue belongs to the brand, not the system. A client theme puts its own color in
--cu-brand.
Accessibility
Every promise is measured the way the browser paints it, in 8 bits, on every layer and in every theme. If a color falls short, the color changes.
-
4.5:1 for reading
Everything you read, on every layer: text 3’s worst case is 4.6:1; the link’s, 5.3:1.
-
3:1 for the rest
The focus ring, status marks, a control’s borders and the series in a chart.
-
Never color alone
A status carries an icon and a word; a field with an error, its ring as well; a series, its label.
-
More contrast
Text 2 rises to 7:1, text 3 takes 64% and fields show the 3:1 border.
-
Forced colors
The focus ring, borders and selection take the system colors.
Light and dark
A light theme defines the same roles; its rules change.
| Dark | Light | |
|---|---|---|
| Layers | The graphites, by their lightness; overlay is the ceiling. | They alternate between gray and white: a gray base, the rest white. |
| Text | Translucent white: 100, 64 and 52%. | The theme’s ink: 100, 66 and 60%. |
| Fills | White at 4, 8, 12 and 16%. | The ink at 3, 6, 9 and 12%. |
| Status | Text never drops below L 70% and rises to L 76% on an overlay. | Text and mark at L 48%, with 10% and 14% backgrounds. |
| Depth | The layer and the veil; shadow only on what floats. | Shadow does the work, in the theme’s ink. |
| Text 3 worst case | 4.6:1 | 4.5:1 |
In a client theme
A client changes the values and none of the roles.
-
Changes
Its layers, its ink, its accent, its link, its focus, its action, its brand and its status colors, with the same contrast promise.
-
Stays
The role names, the layer model, the 2 px focus ring and the icon with the word on every status.
-
Never
Flouvia Blue outside the Flouvia theme.
In code
The roles are CSS variables with the --cu- prefix. The same source writes a TypeScript module, SwiftUI, Jetpack Compose and the variables for Figma.
Figma is a trademark of its owner; its logo appears only to show compatibility and does not imply endorsement.
Changes
- Color · System
New guide, now available: the graphite scale, the four layers, the text tones, status and brand, with their measured contrast.