Converting Colors


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
Hex00008A
RGB0, 0, 138
RGB Percent0%, 0%, 54%
CMY1.0000, 1.0000, 0.4598
CMYK1.00, 1.00, 0.00, 0.46
HSL240°, 100%, 27%
HSV240°, 100%, 54%
XYZ2.0782, 0.1509, 23.8693
Conversions Part 2
FormatColor
RYB0, 0, 138
Decimal138
CIELab1.36, 64.97, -90.66
CIELCh1, 111.536, 305.629
Yxy0.1509, 0.0796, 0.0058
Android (android.graphics.Color)4278190218 (0xFF00008A)
YUV15.7320, 60.2781, -13.7970

Details

The XYZ color 2.0782, 0.1509, 23.8693 is a dark color, and the websafe version is hex 000099. A complement of this color would be 19.4924, 23.4871, 3.5061, and the grayscale version is 0.4598, 0.4837, 0.5268.

A 20% lighter version of the original color is 14.6914, 8.2847, 51.2769, and 1.6797, 0.6719, 8.8453 is the 20% darker color. If you saturate the color by 10%, you get 4.5693, 1.8277, 24.0617, and if you desaturate by 10%, it is 4.9010, 2.2274, 24.1214.

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 XYZ color 2.0782, 0.1509, 23.8693 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 XYZ color 2.0782, 0.1509, 23.8693 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%.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.111.7642, 79.2850, 285.4243The Color 111.7642, 79.2850, 285.4243.86.5551, 59.1301, 235.1659The Color 86.5551, 59.1301, 235.1659.65.4539, 42.7179, 191.1833The Color 65.4539, 42.7179, 191.1833.48.0953, 29.6638, 153.0580The Color 48.0953, 29.6638, 153.0580.34.1139, 19.5836, 120.3713The Color 34.1139, 19.5836, 120.3713.23.1444, 12.0927, 92.7048The Color 23.1444, 12.0927, 92.7048.14.8215, 6.8068, 69.6398The Color 14.8215, 6.8068, 69.6398.8.7797, 3.3416, 50.7580The Color 8.7797, 3.3416, 50.7580.4.6537, 1.3126, 35.6407The Color 4.6537, 1.3126, 35.6407.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.0.0000, 0.0000, 0.0000The Color 0.0000, 0.0000, 0.0000.0.0000, 0.0000, 0.4754The Color 0.0000, 0.0000, 0.4754.0.0000, 0.0000, 1.8729The Color 0.0000, 0.0000, 1.8729.0.0000, 0.0000, 4.4457The Color 0.0000, 0.0000, 4.4457.0.0000, 0.0000, 8.6904The Color 0.0000, 0.0000, 8.6904.0.6773, 0.0000, 15.0254The Color 0.6773, 0.0000, 15.0254.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.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.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.4.5693, 1.8277, 24.0617The Color 4.5693, 1.8277, 24.0617.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.20.0823, 20.5198, 26.8521The Color 20.0823, 20.5198, 26.8521.16.6221, 16.3505, 26.2297The Color 16.6221, 16.3505, 26.2297.13.6597, 12.7811, 25.6968The Color 13.6597, 12.7811, 25.6968.11.1723, 9.7839, 25.2494The Color 11.1723, 9.7839, 25.2494.9.1351, 7.3292, 24.8830The Color 9.1351, 7.3292, 24.8830.7.5213, 5.3846, 24.5927The Color 7.5213, 5.3846, 24.5927.6.3010, 3.9143, 24.3732The Color 6.3010, 3.9143, 24.3732.5.4407, 2.8776, 24.2185The Color 5.4407, 2.8776, 24.2185.4.9010, 2.2274, 24.1214The Color 4.9010, 2.2274, 24.1214.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.Saturation Gradient

🖌️ View as Color Bucket

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.4105, 0.1509, 38.0998The Color 0.4105, 0.1509, 38.0998.4.1765, 0.1509, 5.9653The Color 4.1765, 0.1509, 5.9653.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.0.4105, 0.1509, 38.0998The Color 0.4105, 0.1509, 38.0998.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.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.0.0000, 0.1509, 0.9292The Color 0.0000, 0.1509, 0.9292.1.3426, 0.1509, 0.0000The Color 1.3426, 0.1509, 0.0000.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.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.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.19.4924, 23.4871, 3.5061The Color 19.4924, 23.4871, 3.5061.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.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.0000, 0.1509, 0.0000The Color 0.0000, 0.1509, 0.0000.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.0.0000, 0.1509, 0.0000The Color 0.0000, 0.1509, 0.0000.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.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.0.0000, 0.1509, 11.6362The Color 0.0000, 0.1509, 11.6362.0.0000, 0.1509, 0.0000The Color 0.0000, 0.1509, 0.0000.3.4467, 0.1509, 0.0000The Color 3.4467, 0.1509, 0.0000.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.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.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.0.0000, 0.1509, 0.0000The Color 0.0000, 0.1509, 0.0000.4.8971, 0.1509, 0.7586The Color 4.8971, 0.1509, 0.7586.2.0782, 0.1509, 23.8693The Color 2.0782, 0.1509, 23.8693.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.5693, 1.8277, 24.0617The Color 4.5693, 1.8277, 24.0617.9.5508, 10.0482, 10.9424The Color 9.5508, 10.0482, 10.9424.65.7814, 69.2071, 75.3665The Color 65.7814, 69.2071, 75.3665.4.9770, 4.5370, 10.1197The Color 4.9770, 4.5370, 10.1197.13.6219, 19.9329, 27.0793The Color 13.6219, 19.9329, 27.0793.23.8636, 22.2453, 45.4192The Color 23.8636, 22.2453, 45.4192.4.5693, 1.8277, 24.0617The Color 4.5693, 1.8277, 24.0617.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#00008A

Previews

White Background

 

This preview shows how the XYZ color 2.0782, 0.1509, 23.8693 looks on a white background.

The color contrast ratio for these colors is 15.36, 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 XYZ color 2.0782, 0.1509, 23.8693 looks on a black background.

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

XYZ 2.0782, 0.1509, 23.8693 Background

 

This preview shows how black text looks on a background with the XYZ color 2.0782, 0.1509, 23.8693.

 

This preview shows how white text looks on a background with the XYZ color 2.0782, 0.1509, 23.8693.

Color Blindness Simulation


Dichromacy

Original Color
4.5874, 1.8350, 24.1572
Protanopia
2.3590, 2.1577, 8.6796
Deuteranopia
2.0012, 2.1827, 6.2771

Trichromacy

Original Color
4.5874, 1.8350, 24.1572
Protanomaly
2.8463, 1.6947, 13.2738
Deuteranomaly
2.4575, 1.6101, 11.0077

Monochromacy

Original Color
4.5874, 1.8350, 24.1572
Achromatopsia
0.4925, 0.5182, 0.5643
Achromatomaly
1.0493, 0.6079, 4.3370

CSS Examples


The CSS property to change the color of the text to XYZ 2.0782, 0.1509, 23.8693 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(0, 0, 138) }.

This example shows how text in the color rgb(0, 0, 138) looks like.

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

Here you see how black text with a 4 pixel rgb(0, 0, 138) 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 XYZ 2.0782, 0.1509, 23.8693 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(0, 0, 138) }.

If only the border color should be changed .border{ border-color:rgb(0, 0, 138) } can be used.

Here you see how a box with a 4 pixel rgb(0, 0, 138) 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(0, 0, 138); -webkit-box-shadow:4px 4px 4px 4px rgb(0, 0, 138); box-shadow:4px 4px 4px 4px rgb(0, 0, 138) }.

Background

The CSS property to change the background color of an element to XYZ 2.0782, 0.1509, 23.8693 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(0, 0, 138) }.

If only the background color should be changed .background{ background-color:rgb(0, 0, 138) } 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, "00008A", 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 "240°, 100%, 54%" 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(240°, 100%, 54%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(1.36, 64.97, -90.66)", "CIELCH(1, 111.536, 305.629)", "YXY(0.1509, 0.0796, 0.0058)" and "CMYK(1.00, 1.00, 0.00, 0.46)".


    FontExplorer X - Makes Everyone an Expert

Advertisment: These links are affiliate (commission) links. If you click on such a link and buy something on that website, I get a commission. For you, the price does not change.