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