Input
Enter #336699.
Convert between HEX, RGB, HSL, and CMYK and check text contrast.
| HEX | | |
|---|---|---|
| RGB | | |
| HSL | | |
| HSV | | |
| CMYK | |
At least 4.5:1 is recommended for normal text and 3:1 for large text.
Type a code such as #3159D9, rgb(49, 89, 217), or hsl(226, 69%, 52%), or use the picker.
HEX, RGB, HSL, HSV, and CMYK values appear instantly.
Copy the value you need and check contrast with white and black text.
Enter #336699.
Look at the RGB result.
The channels read red 51, green 102, and blue 153.
CMYK is a simple conversion. Real print colors depend on paper, ink, and color profiles.
HEX (3, 4, 6, or 8 digits), rgb()/rgba(), and hsl()/hsla() are supported. Color names such as red are not.
WCAG recommends at least 4.5:1 for normal text and 3:1 for large text.
Your input is processed only in your browser and is not stored or sent.