#1F159E
Color Details
HEX
#1F159E
RGB
rgb(31, 21, 158)
HSL
hsl(244, 77%, 35%)
CMYK
cmyk(80%, 87%, 0%, 38%)
Best text on this color
#FFFFFF (CR 12.66:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #1F159E
#1F159E converts to RGB(31, 21, 158) and HSL(244, 77%, 35%). 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).
#1F159E FAQs
What is the RGB value of #1F159E?
RGB: 31, 21, 158. Copy as CSS:
rgb(31, 21, 158)
Is #1F159E a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #1F159E?
Complement: #959e15.
Does #1F159E have good contrast on white or black?
On white: 12.66:1 (AAA (normal text)).
On black: 1.66:1 (Fails AA).