#2D138C

Color Details

HEX
#2D138C
RGB
rgb(45, 19, 140)
HSL
hsl(253, 76%, 31%)
CMYK
cmyk(68%, 86%, 0%, 45%)
Best text on this color #FFFFFF (CR 13.26:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #2D138C swatch

Embed this swatch

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

Open image

About #2D138C

#2D138C converts to RGB(45, 19, 140) and HSL(253, 76%, 31%). 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).

#2D138C FAQs

What is the RGB value of #2D138C?
RGB: 45, 19, 140. Copy as CSS: rgb(45, 19, 140)
Is #2D138C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #2D138C?
Complement: #718b13.
Does #2D138C have good contrast on white or black?
On white: 13.26:1 (AAA (normal text)). On black: 1.58:1 (Fails AA).