#2B1B3F
≈ darkslateblue · rgb(43, 27, 63)
Color formats
HEX#2B1B3F
RGBrgb(43, 27, 63)
HSLhsl(267, 40%, 18%)
HSVhsv(267, 57%, 25%)
OKLCHoklch(26% 0.07 303)
CMYKcmyk(32%, 57%, 0%, 75%)
Contrast & accessibility
On white15.77:1AA pass
On black1.33:1below AA
Best text color#FFFFFF
Nearest CSS name: darkslateblue
Copy-ready code
CSS custom properties
:root {
--darkslateblue: #2b1b3f;
--darkslateblue-rgb: 43 27 63;
--darkslateblue-oklch: oklch(26% 0.07 303);
}The space-separated triple lets you set alpha without a second variable:
background: rgb(var(--darkslateblue-rgb) / 40%);
Tailwind (arbitrary value)
bg-[#2b1b3f] text-[#2b1b3f] border-[#2b1b3f]
Shades & tints
50
#E3DFE7
100
#CEC6D7
200
#A492BB
300
#7A5AA2
400
#523873
500
#2B1B3F
600
#241834
700
#1D1429
800
#17101F
900
#100C15
950
#0C0910
Color harmonies
Complementary
#2F3F1B
Analogous −30°
#1B1D3F
Analogous +30°
#3D1B3F
Triadic +120°
#3F2B1B
Triadic −120°
#1B3F2B
About this color
#2B1B3F is a color with the RGB value rgb(43, 27, 63). Its closest CSS named color is "darkslateblue". On this page you'll find every format (HEX, RGB, HSL, HSV, OKLCH, CMYK), WCAG contrast against white and black, a full 50–950 shade scale, and complementary, analogous and triadic harmonies — each linking to its own color page.