最接近的命名颜色 · #3037A8
#3037A8
最接近的命名颜色: Depths of Night
#3037A8(rgb(48 55 168)、hsl(237 56% 42%)、oklch(0.41 0.178 272.8))最接近命名颜色 Depths of Night。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#3037A8
oklch(0.41 0.178 272.8)
颜色转换
- HEX
- #3037a8
- RGB
- rgb(48 55 168)
- HSL
- hsl(237 56% 42%)
- HWB
- hwb(237 19% 34%)
- OKLCH
- oklch(0.41 0.178 272.8)
- OKLab
- oklab(0.41 0.009 -0.177)
- CIE Lab
- lab(28.82 28.11 -62.84)
- LCH
- lch(28.82 68.84 294.1)
- CMYK
- cmyk(71% 67% 0% 34%)
浅色调 · 深色调 · 灰色调
浅色调
- 404DB2
- 5162BC
- 6476C6
- 7889CF
- 8D9DD8
- A3B0E0
- B9C4E9
- D0D7F0
- E7EBF8
深色调
- 282E92
- 21267C
- 1A1E67
- 131652
- 0C0F3F
- 06082C
- 03031A
- 01010A
- 000001
灰色调
- 3641A5
- 3D4AA2
- 44529F
- 4C5A9B
- 546197
- 5C6793
- 656E8F
- 6E748A
- 777A85
配色和谐
互补色 +180°
- 3037A8
Depths of Night
- 5A4800
≈ Sugarloaf Brown
类似色 -30° +30°
- 3037A8
Depths of Night
- 004F7B
≈ China Seas
- 5F2297
≈ Wild Violet
三角配色 +120° +240°
- 3037A8
Depths of Night
- 8A1800
≈ Red Leever
- 005A2D
≈ Sombre Green
分裂互补色 +150° +210°
- 3037A8
Depths of Night
- 6D3D00
≈ Bloodtracker Brown
- 415200
≈ Highlands Moss
四角配色 +90° +180° +270°
- 3037A8
Depths of Night
- 8B0042
≈ Midnight Merlot
- 5A4800
≈ Sugarloaf Brown
- 00574E
≈ Castleton Green
对比度与无障碍
Ag
AAA白底
WCAG 9.38:1 · APCA Lc 91
Ag
Fail黑底
WCAG 2.23:1 · APCA Lc 11
最佳文字颜色: #FFFFFF
WCAG 9.38:1 (AAA) · APCA Lc 91
Contrast pairs
代码片段
CSS
:root {
--depths-of-night: #3037a8;
--depths-of-night-rgb: 48 55 168;
--depths-of-night-oklch: oklch(0.41 0.178 272.8);
}
.element {
color: var(--depths-of-night);
background-color: hsl(237 56% 42%);
border-color: oklch(0.41 0.178 272.8);
}Tailwind CSS v4
@theme {
--color-depths-of-night: #3037a8;
--color-depths-of-night-50: #e6f2ff;
--color-depths-of-night-100: #d6e4ff;
--color-depths-of-night-200: #beceff;
--color-depths-of-night-300: #9dafff;
--color-depths-of-night-400: #7d94ff;
--color-depths-of-night-500: #6276f9;
--color-depths-of-night-600: #5365d2;
--color-depths-of-night-700: #4250a9;
--color-depths-of-night-800: #2c3b7f;
--color-depths-of-night-900: #1e295a;
--color-depths-of-night-950: #0e163d;
}SCSS
$depths-of-night: #3037a8;
$depths-of-night-rgb: 48, 55, 168;
$depths-of-night-light: mix(#fff, $depths-of-night, 20%);
$depths-of-night-dark: mix(#000, $depths-of-night, 20%);
.element {
color: $depths-of-night;
box-shadow: 0 0 0 2px rgba($depths-of-night, 0.35);
}