#2D1CE3
Vivid Indigo
#2D1CE3 is the CSS named color "mediumblue", an exact match. In RGB it breaks down to red 45, green 28, and blue 227 out of 255 each. In HSL terms that's a hue of 245°, 78% saturation, and 50% lightness: a mid-tone — usable as an accent for buttons, links, and icons against either a light or dark background.
Every format
| HEX | #2d1ce3 |
| RGB | rgb(45, 28, 227) |
| HSL | hsl(245° 78% 50%) |
| HSB | hsb(245° 88% 89%) |
| OKLCH | oklch(44% 0.269 271°) |
| OKLAB | oklab(44% 0.003 -0.269) |
| LCH | lch(30% 111.8 301°) |
| CMYK | cmyk(80% 88% 0% 11%) |
Shades (darker)
#2d1ce3 · #2800d6 · #2500ca · #2300bd · #2200b1
Tints (lighter)
#2d1ce3 · #3639f7 · #414fff · #4e64ff · #5c78ff
Shades mix #2D1CE3 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 8.80:1 — AAA
On black: 2.39:1 — fails
Frequently asked
- What is #2D1CE3 in RGB?
- #2D1CE3 is rgb(45, 28, 227) — red 45, green 28, blue 227 out of 255 each.
- Does #2D1CE3 pass WCAG contrast on a white background?
- It has a contrast ratio of 8.80:1 against white, which passes WCAG AAA for normal text.
- What's a good background color to pair with #2D1CE3?
- White text or a white background gives better contrast (8.80:1) than black (2.39:1).