#31397C
Color Details
HEX
#31397C
RGB
rgb(49, 57, 124)
HSL
hsl(234, 43%, 34%)
CMYK
cmyk(60%, 54%, 0%, 51%)
Best text on this color
#FFFFFF (CR 10.46:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #31397C
#31397C converts to RGB(49, 57, 124) and HSL(234, 43%, 34%). 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).
#31397C FAQs
What is the RGB value of #31397C?
RGB: 49, 57, 124. Copy as CSS:
rgb(49, 57, 124)
Is #31397C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #31397C?
Complement: #7c7531.
Does #31397C have good contrast on white or black?
On white: 10.46:1 (AAA (normal text)).
On black: 2.01:1 (Fails AA).