#0F1B4C in other formats
rgb(15, 27, 76) · hsl(228, 67%, 18%) · cmyk(80%, 64%, 0%, 70%) — and white text on it has a contrast of 16.39:1.
Convert colors between HEX, RGB, HSL, HSV and CMYK, and check their contrast against white and black.
HEX, rgb() or hsl() — for example #0F1B4C, rgb(15, 27, 76) or hsl(228, 67%, 18%).
HEX
Text contrast (WCAG)
Runs in your browser — nothing you enter is sent to a server.
Type a color in any common format — HEX such as #FF6B1A, rgb(255, 107, 26) or hsl(21, 100%, 55%) — or choose one with the color picker. Every other format updates instantly, each with its own copy button.
The tool also measures how readable white and black text would be on that color, using the WCAG contrast ratio: 4.5:1 is the minimum for normal text (AA) and 7:1 the enhanced level (AAA).
#RRGGBB → (RR16, GG16, BB16)
Each pair of hexadecimal digits is one channel from 0 to 255: FF = 255, 6B = 107, 1A = 26.
(L1 + 0.05) ÷ (L2 + 0.05)
Where:
rgb(15, 27, 76) · hsl(228, 67%, 18%) · cmyk(80%, 64%, 0%, 70%) — and white text on it has a contrast of 16.39:1.
#F60 is shorthand for #FF6600: each digit is doubled.
Both describe color by hue and saturation. HSL uses lightness, where 100% is always white; HSV uses value (brightness), where 100% is the most vivid version of the color. Design tools often show HSV; CSS uses HSL.
No. It's the standard mathematical conversion, useful as a starting point. Real printed color depends on the printer, ink and paper profile, so check with your printer for accurate CMYK values.
Yes. Enter 8-digit HEX (#0F1B4C80), rgba() or a slash alpha such as rgb(15 27 76 / 50%), and the alpha value is kept in the HEX, RGB and HSL outputs.
Convert length, weight, temperature, area, volume, speed, time, data storage, pressure and energy units instantly.
Converters
Turn a link or text into a QR code and download it as SVG or PNG, with custom colors.
Generators
Minify CSS to make it smaller, or beautify minified CSS to make it readable.
Developer Tools
Build color palettes from a base color with color-wheel harmonies, with HEX, RGB and HSL values.
Generators
Click any point of an image to get its color as HEX, RGB and HSL, and see the image's main colors.
Image Tools
Make lighter tints and darker shades of a color, with a 50–900 scale of CSS variables.
Design Tools
Build layered CSS box shadows with sliders and a live preview, including inner shadows.
Design Tools
Also in Tools for Website Owners.