最接近的命名颜色 · #2D2D2D
#2D2D2D
最接近的命名颜色: Carbon Fibre
#2D2D2D(rgb(45 45 45)、hsl(0 0% 18%)、oklch(0.297 0 0))最接近命名颜色 Carbon Fibre。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#2D2D2D
oklch(0.297 0 0)
颜色转换
- HEX
- #2d2d2d
- RGB
- rgb(45 45 45)
- HSL
- hsl(0 0% 18%)
- HWB
- hwb(0 18% 82%)
- OKLCH
- oklch(0.297 0 0)
- OKLab
- oklab(0.297 0 0)
- CIE Lab
- lab(18.47 0 0)
- LCH
- lch(18.47 0 0)
- CMYK
- cmyk(0% 0% 0% 82%)
浅色调 · 深色调 · 灰色调
浅色调
- 3F3F3F
- 525252
- 656565
- 7A7A7A
- 8F8F8F
- A4A4A4
- BABABA
- D1D1D1
- E8E8E8
深色调
- 262626
- 1F1F1F
- 181818
- 111111
- 0B0B0B
- 060606
- 020202
- 010101
- 000000
灰色调
- 353535
- 3C3C3C
- 444444
- 4C4C4C
- 555555
- 5D5D5D
- 666666
- 6E6E6E
- 777777
配色和谐
互补色 +180°
- 2D2D2D
Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
类似色 -30° +30°
- 2D2D2D
Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
三角配色 +120° +240°
- 2D2D2D
Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
分裂互补色 +150° +210°
- 2D2D2D
Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
四角配色 +90° +180° +270°
- 2D2D2D
Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
- 2D2D2D
≈ Carbon Fibre
对比度与无障碍
Ag
AAA白底
WCAG 13.77:1 · APCA Lc 100
Ag
Fail黑底
WCAG 1.52:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 13.77:1 (AAA) · APCA Lc 100
Contrast pairs
代码片段
CSS
:root {
--carbon-fibre: #2d2d2d;
--carbon-fibre-rgb: 45 45 45;
--carbon-fibre-oklch: oklch(0.297 0 0);
}
.element {
color: var(--carbon-fibre);
background-color: hsl(0 0% 18%);
border-color: oklch(0.297 0 0);
}Tailwind CSS v4
@theme {
--color-carbon-fibre: #2d2d2d;
--color-carbon-fibre-50: #f5f5f5;
--color-carbon-fibre-100: #e8e8e8;
--color-carbon-fibre-200: #d4d4d4;
--color-carbon-fibre-300: #b7b7b7;
--color-carbon-fibre-400: #9e9e9e;
--color-carbon-fibre-500: #868686;
--color-carbon-fibre-600: #717171;
--color-carbon-fibre-700: #5b5b5b;
--color-carbon-fibre-800: #424242;
--color-carbon-fibre-900: #2e2e2e;
--color-carbon-fibre-950: #1b1b1b;
}SCSS
$carbon-fibre: #2d2d2d;
$carbon-fibre-rgb: 45, 45, 45;
$carbon-fibre-light: mix(#fff, $carbon-fibre, 20%);
$carbon-fibre-dark: mix(#000, $carbon-fibre, 20%);
.element {
color: $carbon-fibre;
box-shadow: 0 0 0 2px rgba($carbon-fibre, 0.35);
}