最接近的命名颜色 · #157FAB
#157FAB
最接近的命名颜色: Neptune
#157FAB(rgb(21 127 171)、hsl(198 78% 38%)、oklch(0.562 0.11 232.9))最接近命名颜色 Neptune。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#157FAB
oklch(0.562 0.11 232.9)
颜色转换
- HEX
- #157fab
- RGB
- rgb(21 127 171)
- HSL
- hsl(198 78% 38%)
- HWB
- hwb(198 8% 33%)
- OKLCH
- oklch(0.562 0.11 232.9)
- OKLab
- oklab(0.562 -0.067 -0.088)
- CIE Lab
- lab(49.31 -16.7 -31.94)
- LCH
- lch(49.31 36.04 242.4)
- CMYK
- cmyk(88% 26% 0% 33%)
浅色调 · 深色调 · 灰色调
浅色调
- 398CB4
- 5398BC
- 6AA5C5
- 80B2CD
- 95BED6
- AACBDE
- BFD8E6
- D4E5EF
- EAF2F7
深色调
- 116E94
- 0C5D7E
- 084C68
- 053C54
- 032D40
- 021F2D
- 01111B
- 00060B
- 000101
灰色调
- 2B7FA7
- 3A80A3
- 45809F
- 50809B
- 598196
- 628192
- 6A818E
- 718189
- 798085
配色和谐
互补色 +180°
- 157FAB
Neptune
- A76130
≈ Clove Dye
类似色 -30° +30°
- 157FAB
Neptune
- 00858E
≈ Gulf Stream
- 5273B6
≈ Prefect
三角配色 +120° +240°
- 157FAB
Neptune
- A6587B
≈ Cranbrook
- 767B22
≈ Ripe Green
分裂互补色 +150° +210°
- 157FAB
Neptune
- AD5856
≈ Bretzel Brown
- 946E11
≈ Honey Yellow Green
四角配色 +90° +180° +270°
对比度与无障碍
Ag
AA白底
WCAG 4.51:1 · APCA Lc 71
Ag
AA黑底
WCAG 4.65:1 · APCA Lc 31
最佳文字颜色: #000000
WCAG 4.65:1 (AA) · APCA Lc 31
Contrast pairs
代码片段
CSS
:root {
--neptune: #157fab;
--neptune-rgb: 21 127 171;
--neptune-oklch: oklch(0.562 0.11 232.9);
}
.element {
color: var(--neptune);
background-color: hsl(198 78% 38%);
border-color: oklch(0.562 0.11 232.9);
}Tailwind CSS v4
@theme {
--color-neptune: #157fab;
--color-neptune-50: #d8fbff;
--color-neptune-100: #c5efff;
--color-neptune-200: #a6ddfd;
--color-neptune-300: #7dc1e8;
--color-neptune-400: #53a9d5;
--color-neptune-500: #1b91c3;
--color-neptune-600: #1b7ba5;
--color-neptune-700: #166384;
--color-neptune-800: #0a4961;
--color-neptune-900: #073244;
--color-neptune-950: #001e2c;
}SCSS
$neptune: #157fab;
$neptune-rgb: 21, 127, 171;
$neptune-light: mix(#fff, $neptune, 20%);
$neptune-dark: mix(#000, $neptune, 20%);
.element {
color: $neptune;
box-shadow: 0 0 0 2px rgba($neptune, 0.35);
}