Converting Colors

Advertisment

Conversions · Details · Harmonies · Images · Preview · Color Blindness Simulation · CSS · Help

Conversions

Here you see your color converted to 15 different color formats like RGB, CMYK, HSV, HSL, CIELab, Android, Decimal, and YUV. 🎁 Convert multiple colors at once or get Conversions and Harmonies via the REST API.

Conversions Part 1
FormatColor
Hex040C2F
RGB4, 12, 47
RGB Percent2%, 5%, 18%
CMY0.9843, 0.9515, 0.8157
CMYK0.91, 0.74, 0.00, 0.82
HSL228°, 84%, 10%
HSV228°, 91%, 18%
XYZ0.6991, 0.5028, 2.7495
Conversions Part 2
FormatColor
RYB4, 11, 47
Decimal265263
CIELab4.54, 9.06, -23.26
CIELCh5, 24.961, 291.278
Yxy0.5028, 0.1769, 0.1273
Android (android.graphics.Color)4278455343 (0xFF040C2F)
YUV13.5980, 16.4672, -8.4174

Details

The RYB color 4, 11, 47 is a dark color, and the websafe version is hex 000033. A complement of this color would be 14, 47, 4, and the grayscale version is 14, 14, 14.

A 20% lighter version of the original color is 50, 54, 93, and 0, 0, 0 is the 20% darker color. If you saturate the color by 10%, you get 0, 8, 47, and if you desaturate by 10%, it is 9, 15, 47.

Advertisment

Distribution

RGB Color DistributionThe distribution of the RGB values, red, green and blue.RedThe Perecentage of Red in the Color.GreenThe Perecentage of Green in the Color.BlueThe Perecentage of Blue in the Color.RGB
RYB Color DistributionThe distribution of the RYB values, red, yellow and blue.RedThe Perecentage of Red in the Color.YellowThe Perecentage of Yellow in the Color.BlueThe Perecentage of Blue in the Color.RYB
CMYK Color DistributionThe distribution of the CMYK values, Cyan, Magenta, Yellow and Black.CyanThe Perecentage of Cyan in the Color.MagentaThe Perecentage of Magenta in the Color.YellowThe Perecentage of Yellow in the Color.BlackThe Perecentage of Black in the Color.CMYK
CMY Color DistributionThe distribution of the CMY values, Cyan, Magenta, Yellow.CyanThe Perecentage of Cyan in the Color.MagentaThe Perecentage of Magenta in the Color.YellowThe Perecentage of Yellow in the Color.CMY

Brightness & Saturation Gradients

These gradients show how the RYB color 4, 11, 47 changes by changing the brightness by 10 percent. The first figure shows a shift by +10% for each color and the second figure -10%.

Similar to the brightness gradients but the following saturation gradients show a change of the RYB color 4, 11, 47 by changing the saturation by 10% instead.

Brightness GradientThese gradients show how the {format} color {color} changes by changing the brightness by 10 percent. The first figure shows a shift by +10% for each color and the second figure -10%.4, 11, 47The Color 4, 11, 47.234, 236, 255The Color 234, 236, 255.206, 207, 255The Color 206, 207, 255.178, 180, 226The Color 178, 180, 226.151, 153, 198The Color 151, 153, 198.125, 127, 171The Color 125, 127, 171.99, 102, 144The Color 99, 102, 144.75, 78, 118The Color 75, 78, 118.51, 55, 93The Color 51, 55, 93.27, 33, 70The Color 27, 33, 70.4, 11, 47The Color 4, 11, 47.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]4, 11, 47The Color 4, 11, 47.0, 0, 0The Color 0, 0, 0.0, 1, 26The Color 0, 1, 26.4, 11, 47The Color 4, 11, 47.Brightness Gradient

🖌️ View as Color Bucket

Saturation GradientSimilar to the brightness gradients but the following saturation gradients show a change of the {format} color {color} by changing the saturation by 10% instead.4, 11, 47The Color 4, 11, 47.0, 8, 47The Color 0, 8, 47.4, 11, 47The Color 4, 11, 47.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]4, 11, 47The Color 4, 11, 47.46, 46, 47The Color 46, 46, 47.42, 43, 47The Color 42, 43, 47.37, 39, 47The Color 37, 39, 47.32, 35, 47The Color 32, 35, 47.28, 31, 47The Color 28, 31, 47.23, 27, 47The Color 23, 27, 47.18, 23, 47The Color 18, 23, 47.13, 19, 47The Color 13, 19, 47.9, 15, 47The Color 9, 15, 47.4, 11, 47The Color 4, 11, 47.Saturation Gradient

🖌️ View as Color Bucket

Advertisment

Harmonies

Analogous

The analogous color harmony consists of three colors that are next to each other on the color wheel.

AnalogousThe analogous color harmony consists of three colors that are next to each other on the color wheel.0, 14, 49The Color 0, 14, 49.32, 3, 37The Color 32, 3, 37.4, 11, 47The Color 4, 11, 47.0, 14, 49The Color 0, 14, 49.Analogous

🖌️ View as Color Bucket

Triad

The triadic color harmony groups three colors that are evenly spaced from another and form a triangle on the color wheel.

TriadThe triadic color harmony groups three colors that are evenly spaced from another and form a triangle on the color wheel.4, 11, 47The Color 4, 11, 47.0, 20, 25The Color 0, 20, 25.39, 4, 0The Color 39, 4, 0.4, 11, 47The Color 4, 11, 47.Triad

🖌️ View as Color Bucket

Complementary

The complementary color scheme is a pair of colors which are on the opposite of each other on the color wheel.

ComplementaryThe complementary color scheme is a pair of colors which are on the opposite of each other on the color wheel.4, 11, 47The Color 4, 11, 47.14, 47, 4The Color 14, 47, 4.4, 11, 47The Color 4, 11, 47.Complementary

🖌️ View as Color Bucket

Split Complementary

Split-complementary colors differ from the complementary color scheme. The scheme consists of three colors, the original color and two neighbors of the complement color.

Split ComplementarySplit-complementary colors differ from the complementary color scheme. The scheme consists of three colors, the original color and two neighbors of the complement color.0, 24, 24The Color 0, 24, 24.27, 25, 0The Color 27, 25, 0.4, 11, 47The Color 4, 11, 47.0, 24, 24The Color 0, 24, 24.Split Complementary

🖌️ View as Color Bucket

Square

The square scheme is like the rectangle color scheme, but the four colors are evenly spaced on the color wheel.

SquareThe square scheme is like the rectangle color scheme, but the four colors are evenly spaced on the color wheel.4, 11, 47The Color 4, 11, 47.0, 13, 28The Color 0, 13, 28.0, 20, 18The Color 0, 20, 18.45, 0, 0The Color 45, 0, 0.4, 11, 47The Color 4, 11, 47.Square

🖌️ View as Color Bucket

Rectangle

The rectangle color scheme consists of four colors that form a rectangle on the color wheel.

RectangleThe rectangle color scheme consists of four colors that form a rectangle on the color wheel.4, 11, 47The Color 4, 11, 47.0, 25, 25The Color 0, 25, 25.0, 20, 18The Color 0, 20, 18.40, 0, 28The Color 40, 0, 28.4, 11, 47The Color 4, 11, 47.Rectangle

🖌️ View as Color Bucket

Sweetspot

The sweet spot groups the original color and five complimentary colors.

SweetspotThe sweet spot groups the original color and five complimentary colors.4, 11, 47The Color 4, 11, 47.31, 31, 31The Color 31, 31, 31.158, 158, 158The Color 158, 158, 158.21, 23, 31The Color 21, 23, 31.4, 28, 47The Color 4, 28, 47.45, 48, 61The Color 45, 48, 61.4, 11, 47The Color 4, 11, 47.Sweetspot

🖌️ View as Color Bucket

SVG Images

A selection of SVG images using the hex version #040C2F of the current color.

#040C2F
Advertisment

Previews

White Background

 

This preview shows how the RYB color 4, 11, 47 looks on a white background.

The color contrast ratio for these colors is 19.11, which passes the AAA level of the Web Content Accessibility Guidelines (WCAG) 2.0 for all text sizes. Details can be found at https://www.w3.org/TR/WCAG20/.

Black Background

 

This preview shows how the RYB color 4, 11, 47 looks on a black background.

The color contrast ratio for these colors is 1.10, which fails to comply with the Web Content Accessibility Guidelines (WCAG) 2.0. Details can be found at https://www.w3.org/TR/WCAG20/.

RYB 4, 11, 47 Background

 

This preview shows how black text looks on a background with the RYB color 4, 11, 47.

 

This preview shows how white text looks on a background with the RYB color 4, 11, 47.

Color Blindness Simulation


Dichromacy

Original Color
4, 11, 47
Protanopia
0, 11, 35
Deuteranopia
0, 11, 30
Tritanopia
0, 10, 20

Trichromacy

Original Color
4, 11, 47
Protanomaly
1, 11, 39
Deuteranomaly
1, 12, 36
Tritanomaly
1, 11, 30

Monochromacy

Original Color
4, 11, 47
Achromatopsia
14, 14, 14
Achromatomaly
10, 13, 26
Advertisment

CSS Examples


The CSS property to change the color of the text to RYB 4, 11, 47 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(4, 12, 47) }.

This example shows how text in the color rgb(4, 12, 47) looks like.

If you want to add a text shadow in that color use .shadow{ text-shadow: 4px 4px 2px rgb(4, 12, 47) }.

Here you see how black text with a 4 pixel rgb(4, 12, 47) colored shadow looks like.

Border

This example shows the color as border, it can be applied via the CSS property "border" or "border-color".

The CSS property to change the border of an element to RYB 4, 11, 47 is called "border". The border property can be set on classes, ids or directly on the HTML element .border, #border, table{ border:4px solid rgb(4, 12, 47) }.

If only the border color should be changed .border{ border-color:rgb(4, 12, 47) } can be used.

Here you see how a box with a 4 pixel rgb(4, 12, 47) colored shadow looks like.

If you want to add a box shadow in that color use .boxshadow{ -moz-box-shadow:4px 4px 4px 4px rgb(4, 12, 47); -webkit-box-shadow:4px 4px 4px 4px rgb(4, 12, 47); box-shadow:4px 4px 4px 4px rgb(4, 12, 47) }.

Background

The CSS property to change the background color of an element to RYB 4, 11, 47 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(4, 12, 47) }.

If only the background color should be changed .background{ background-color:rgb(4, 12, 47) } can be used.

This example shows the color as background, it is applied via the CSS property "background".

To optimize and compress your CSS code, you can use our online CSS compressor and optimizer based on csstidy. If you want to create a linear gradient as background or border, check our CSS Gradient Generator.

How-to use Converting Colors

To convert, paste a string in one of these color formats, for example, "040C2F", into the input field and click on convert. The result will be in the section Color Conversions, and the following sections will provide you with further details on the color.

Some color formats use the same notation, and the conversion will guess the composition of the search query. As an example, if you try to convert the string "228°, 91%, 18%" it could be an HSV or HSL color, the conversion will assume HSL in this case.

As this could lead to wrong conversions, you can define which format you are passing by wrapping your color string in brackets with the format in front. The search string "HSV(228°, 91%, 18%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(4.54, 9.06, -23.26)", "CIELCH(5, 24.961, 291.278)", "YXY(0.5028, 0.1769, 0.1273)" and "CMYK(0.91, 0.74, 0.00, 0.82)".


Advertisment