Universal Color Code Converter

Instant HEX, RGB, HSL & CMYK Converter

Type or paste any color code format (HEX, RGB, HSL) to instantly calculate all mathematical conversions, Tailwind classes, WCAG accessibility ratios, and tints/shades.

#3498DBClick box to pick
Quick Examples:

Calculated Mathematical Conversions

HEX Code#3498DB
RGB (CSS)rgb(52, 152, 219)
HSLhsl(204, 70%, 53%)
HSV / HSBhsv(204, 76%, 86%)
CMYK (Print)cmyk(76%, 31%, 0%, 14%)
OKLCH (CSS 4)oklch(0.66 0.210 204.0)
Tailwind CSSbg-[#3498db]
CSS Variable--color-primary: #3498db;

WCAG Accessibility Contrast

Contrast on White: 3.15:1 (Large Text) • On Black: 6.66:1 (AA Pass)

Full Encyclopedia Entry

Tints & Shades of #3498DB

Systematic color light variations (mixed with pure white) and dark variations (mixed with pure black).

Tints of #3498DB (Lighter Steps)

Created by progressively blending #3498DB with pure white (#FFFFFF). Essential for subtle backgrounds, card highlights, and button hover states.

#3498DBBase
#48A2DFTint 1
#5DADE2Tint 2
#71B7E6Tint 3
#85C1E9Tint 4
#9ACCEDTint 5
#AED6F1Tint 6
#C2E0F4Tint 7
#D6EAF8Tint 8
#EBF5FBTint 9
#FFFFFFPure White

Shades of #3498DB (Darker Steps)

Created by progressively mixing #3498DB with pure black (#000000). Ideal for dark-mode text, borders, shadows, and deep header sections.

#3498DBPure Black
#2F89C5Shade 9
#2A7AAFShade 8
#246A99Shade 7
#1F5B83Shade 6
#1A4C6EShade 5
#153D58Shade 4
#102E42Shade 3
#0A1E2CShade 2
#050F16Shade 1
#000000Base

Understanding Digital Color Models (HEX, RGB, HSL)

What is a HEX Color Code?

A hexadecimal color code is a 6-character alphanumeric string preceded by a hash symbol (e.g. #3498DB). The first two characters specify Red intensity (00 to FF), the middle two Green, and the last two Blue.

What is RGB Color Model?

RGB is an additive color model based on human eye cone receptors. Values range from 0 to 255 for Red, Green, and Blue. Mixing all three at 255 produces pure white, while all at 0 produces black.

Why use HSL in Web Design?

HSL stands for Hue (0-360° on the color wheel), Saturation (0-100%), and Lightness (0-100%). It is preferred by UI designers because creating hover states or dark mode variants only requires adjusting Lightness.