#280C38
≈ midnightblue · rgb(40, 12, 56)
Color formats
HEX#280C38
RGBrgb(40, 12, 56)
HSLhsl(278, 65%, 13%)
HSVhsv(278, 79%, 22%)
OKLCHoklch(23% 0.08 311)
CMYKcmyk(29%, 79%, 0%, 78%)
Contrast & accessibility
On white17.50:1AA pass
On black1.20:1below AA
Best text color#FFFFFF
Nearest CSS name: midnightblue
Shades & tints
Color harmonies
About this color
#280C38 is a color with the RGB value rgb(40, 12, 56). Its closest CSS named color is "midnightblue". 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.