RGB to CMYK converter
Enter a RGB value such as rgb(38 70 83) to convert it to CMYK. Every other format is shown too, and the result updates as you type.
Detected RGB.
Examples: #1e90ff, rgb(30 144 255 / 50%), hsl(210 100% 56%), oklch(0.65 0.18 255), cmyk(88% 44% 0% 0%), tomato
- Name
- Dark greyish azure(descriptive)
- Alpha
- 100%
- Relative luminance
- 0.0542
- Perceived lightness (OKLCH L)
- 37.5%
- Contrast on white
- 10.08:1
- Contrast on black
- 2.08:1
Converted values
- HEX
#264653 - RGB
rgb(38 70 83) - HSL
hsl(197.3 37.2% 23.7%) - HSV / HSB
hsv(197.3 54.2% 32.5%) - HWB
hwb(197.3 14.9% 67.5%) - OKLCH
oklch(37.53% 0.0438 226.2) - OKLAB
oklab(37.53% -0.0303 -0.0316) - CIELAB
lab(27.7% -9.13 -11.69) - CMYK
cmyk(54% 16% 0% 67%)
CMYK is a naive, device-independent approximation. Real print colours depend on the ink, paper and ICC profile your printer uses, so ask your printer for a proofed conversion. HSV/HSB is not a CSS format and is shown for design apps. CIELAB uses the D50 white point, as in CSS lab().
How to convert RGB to CMYK
- Divide R, G and B by 255.
- K = 1 − max(R, G, B).
- C = (1 − R − K) ÷ (1 − K), M = (1 − G − K) ÷ (1 − K), Y = (1 − B − K) ÷ (1 − K).
- Multiply by 100. For accurate print colour, convert with the press profile in your design software.
About RGB
RGB gives the same three sRGB channels as decimal numbers from 0 to 255 (or 0–100%). Modern CSS writes rgb(255 87 51 / 50%) with spaces and a slash before the alpha; the older comma form rgba(255, 87, 51, 0.5) still works everywhere.
About CMYK
CMYK gives the cyan, magenta, yellow and black ink percentages used in four-colour printing. A conversion from screen colours without an ICC profile is only an approximation; printers use profiles for the specific press and paper.