#2A1F9C

Color Details

HEX
#2A1F9C
RGB
rgb(42, 31, 156)
HSL
hsl(245, 67%, 37%)
CMYK
cmyk(73%, 80%, 0%, 39%)
Best text on this color #FFFFFF (CR 11.83:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #2A1F9C swatch

Embed this swatch

Use this HTML on your site (free with a link):

Open image

About #2A1F9C

#2A1F9C converts to RGB(42, 31, 156) and HSL(245, 67%, 37%). This page provides quick readability checks, related hues (complementary and analogous), and ready-made palettes so you can drop the color into UI components, images, or CSS immediately.

Tip: Use the “Best text” chip above as a safe default foreground on this color (chosen by contrast ratio).

#2A1F9C FAQs

What is the RGB value of #2A1F9C?
RGB: 42, 31, 156. Copy as CSS: rgb(42, 31, 156)
Is #2A1F9C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #2A1F9C?
Complement: #939e1f.
Does #2A1F9C have good contrast on white or black?
On white: 11.83:1 (AAA (normal text)). On black: 1.77:1 (Fails AA).