最接近的命名颜色 · #31738F
#31738F
最接近的命名颜色: Astral
#31738F(rgb(49 115 143)、hsl(198 49% 38%)、oklch(0.525 0.08 229))最接近命名颜色 Astral。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#31738F
oklch(0.525 0.08 229)
颜色转换
- HEX
- #31738f
- RGB
- rgb(49 115 143)
- HSL
- hsl(198 49% 38%)
- HWB
- hwb(198 19% 44%)
- OKLCH
- oklch(0.525 0.08 229)
- OKLab
- oklab(0.525 -0.052 -0.06)
- CIE Lab
- lab(45.14 -14.77 -21.98)
- LCH
- lch(45.14 26.49 236.1)
- CMYK
- cmyk(66% 20% 0% 44%)
浅色调 · 深色调 · 灰色调
浅色调
- 48809A
- 5C8EA5
- 719CB0
- 85A9BB
- 99B7C6
- ADC5D2
- C1D4DD
- D5E2E8
- EAF0F4
深色调
- 29637C
- 225469
- 1A4557
- 133645
- 0C2834
- 061B24
- 030F15
- 010507
- 000101
灰色调
- 3C758E
- 45768C
- 4D778B
- 55798A
- 5D7A88
- 647B87
- 6C7D85
- 737E83
- 797F82
配色和谐
互补色 +180°
- 31738F
Astral
- 905C40
≈ Spiced Cider
类似色 -30° +30°
- 31738F
Astral
- 20787C
≈ Blue Kelp
- 4E6B98
≈ Blue Odyssey
三角配色 +120° +240°
- 31738F
Astral
- 8D5772
≈ Indian Silk
- 6E6E34
≈ Aged Mustard Green
分裂互补色 +150° +210°
- 31738F
Astral
- 935758
≈ Baca Berry
- 836531
≈ Dirt Brown
四角配色 +90° +180° +270°
对比度与无障碍
Ag
AA白底
WCAG 5.27:1 · APCA Lc 76
Ag
Fail黑底
WCAG 3.97:1 · APCA Lc 26
最佳文字颜色: #FFFFFF
WCAG 5.27:1 (AA) · APCA Lc 76
Contrast pairs
代码片段
CSS
:root {
--astral: #31738f;
--astral-rgb: 49 115 143;
--astral-oklch: oklch(0.525 0.08 229);
}
.element {
color: var(--astral);
background-color: hsl(198 49% 38%);
border-color: oklch(0.525 0.08 229);
}Tailwind CSS v4
@theme {
--color-astral: #31738f;
--color-astral-50: #dffaff;
--color-astral-100: #ceedfe;
--color-astral-200: #b3dbf0;
--color-astral-300: #8ebfd9;
--color-astral-400: #6ba8c4;
--color-astral-500: #4790b0;
--color-astral-600: #3d7a95;
--color-astral-700: #306277;
--color-astral-800: #214858;
--color-astral-900: #16323d;
--color-astral-950: #071e27;
}SCSS
$astral: #31738f;
$astral-rgb: 49, 115, 143;
$astral-light: mix(#fff, $astral, 20%);
$astral-dark: mix(#000, $astral, 20%);
.element {
color: $astral;
box-shadow: 0 0 0 2px rgba($astral, 0.35);
}