夜潮蓝

新闻资讯与专题页 · 质量分 86 ·算法生成

查看 JSON

10 个颜色角色

每个颜色都有明确用途,点右侧按钮即可复制对应格式。

Primary primary
主色,对应 CSS 变量 --color-primary
#0e18a4rgb(14, 24, 164)hsl(236, 84.3%, 34.9%)
Primary Hover primaryHover
悬停态:--color-primary-hover
#070d64rgb(7, 13, 100)hsl(236.1, 86.9%, 21%)
Primary Active primaryActive
按下态:--color-primary-active
#03052brgb(3, 5, 43)hsl(237, 87%, 9%)
Text Main textMain
主文字:--color-text-main
#232429rgb(35, 36, 41)hsl(230, 7.9%, 14.9%)
Text Sub textSub
次级文字:--color-text-sub
#6a6b7crgb(106, 107, 124)hsl(236.7, 7.8%, 45.1%)
Background bg
页面背景:--color-bg
#f9f9fargb(249, 249, 250)hsl(240, 9.1%, 97.8%)
Surface surface
卡片/面板背景:--color-surface
#f4f4f6rgb(244, 244, 246)hsl(240, 10%, 96.1%)
Border border
边框分割线:--color-border
#e3e4e8rgb(227, 228, 232)hsl(228, 9.8%, 90%)
Link link
链接色:--color-link
#050b61rgb(5, 11, 97)hsl(236.1, 90.2%, 20%)
Accent accent
强调色:--color-accent
#f2e42crgb(242, 228, 44)hsl(55.8, 88.4%, 56.1%)

搭配建议

依据主色所属的色系与明度给出的使用建议,人工撰写,不是模板套话。

这套配色的主色偏深、分量感强,适合深色主题,或需要传递专业、稳重印象的界面。

适合适合需要长时间注视的界面,蓝色对眼睛最友好。
慎用用得实在太普遍,容易没个性,需要靠辅色和排版做出差异。
搭配配深蓝做层次、配白做通透,是最不容易出错的两条路。

主色色系:蓝

用在真实界面里是什么样

同一套配色在三端界面里的实际效果,这是判断好不好用最快的方式。

实时预览 · 点击切换端
your-site.com×+
https://your-site.com
全新上线

用这套配色构建你的产品

导航、按钮、卡片与文字层级,一次预览全部效果。

主要操作了解更多
卡片一次级说明文字,用于验证对比度是否符合 WCAG。
卡片二强调色用于高亮,注意与主色形成层次差。
卡片三中性文字色承载正文,是最频繁使用的颜色。

无障碍对比度检查

按 WCAG 2.1 标准计算。AA 为可访问底线,AAA 为增强级别。

前景 / 背景对比度文字场景大字号场景
主文字 / 页面背景14.72:1AAAAAA
主文字 / 卡片背景14.1:1AAAAAA
主色 / 页面背景11.84:1AAAAAA

用检查器验证这对颜色 →

导出到你的项目

四种格式,直接粘贴即可使用。也可用 URL 让工具/AI 自动抓取。

CSS 变量

:root { --color-primary: #0e18a4; /* Primary */ --color-primaryHover: #070d64; /* Primary Hover */ --color-primaryActive: #03052b; /* Primary Active */ --color-textMain: #232429; /* Text Main */ --color-textSub: #6a6b7c; /* Text Sub */ --color-bg: #f9f9fa; /* Background */ --color-surface: #f4f4f6; /* Surface */ --color-border: #e3e4e8; /* Border */ --color-link: #050b61; /* Link */ --color-accent: #f2e42c; /* Accent */ }

SCSS 变量

$color-primary: #0e18a4; // Primary $color-primaryHover: #070d64; // Primary Hover $color-primaryActive: #03052b; // Primary Active $color-textMain: #232429; // Text Main $color-textSub: #6a6b7c; // Text Sub $color-bg: #f9f9fa; // Background $color-surface: #f4f4f6; // Surface $color-border: #e3e4e8; // Border $color-link: #050b61; // Link $color-accent: #f2e42c; // Accent

Tailwind 配置

// tailwind.config.js:夜潮蓝 module.exports = { theme: { extend: { colors: { 'primary': '#0e18a4', 'primaryHover': '#070d64', 'primaryActive': '#03052b', 'textMain': '#232429', 'textSub': '#6a6b7c', 'bg': '#f9f9fa', 'surface': '#f4f4f6', 'border': '#e3e4e8', 'link': '#050b61', 'accent': '#f2e42c', }, }, }, };

机器可读 JSON

{ "name": "夜潮蓝", "platform": "web", "tags": [ "商务", "蓝" ], "advice": { "family": "蓝", "depth": "这套配色的主色偏深、分量感强,适合深色主题,或需要传递专业、稳重印象的界面。", "muted": null, "suit": "适合需要长时间注视的界面,蓝色对眼睛最友好。", "avoid": "用得实在太普遍,容易没个性,需要靠辅色和排版做出差异。", "pair": "配深蓝做层次、配白做通透,是最不容易出错的两条路。" }, "roles": { "primary": "#0e18a4", "primaryHover": "#070d64", "primaryActive": "#03052b", "textMain": "#232429", "textSub": "#6a6b7c", "bg": "#f9f9fa", "surface": "#f4f4f6", "border": "#e3e4e8", "link": "#050b61", "accent": "#f2e42c" }, "contrast": { "textOnBg": { "ratio": 14.72, "level": "AAA" }, "primaryOnBg": { "ratio": 11.84, "level": "AAA" }, "textOnSurface": { "ratio": 14.1, "level": "AAA" } } }