Converting Colors

Conversions · Details · Harmonies · Images · Preview · CSS · Help

Conversions

New: Converting Colors offers a new tool to do mass color conversions.

FormatColor
HSL146°, 25%, 25%
CIELCh32, 17.782, 157.101
Yxy6.8967, 0.2874, 0.3882
Android (android.graphics.Color)4281422143 (0xFF31513F)
YUV69.3800, -3.1453, -17.8733

Get Conversions and Harmonies as JSON or XML via the REST API.


Details

The Hex color 31513F is a dark color, and the websafe version is hex 336666. A complement of this color would be 513143, and the grayscale version is 454545.

A 20% lighter version of the original color is 61836F, and 042415 is the 20% darker color. If you saturate the color by 10%, you get 29513A, and if you desaturate by 10%, it is 395144.

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 Gradient

These gradients show how the Hex color 31513F changes by changing the brightness by 10 percent. The first figure shows a shift by +10% for each color and the second figure -10%.

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%.31513FThe Color 31513F.FFFFFFThe Color FFFFFF.E7FFF5The Color E7FFF5.CAF0D9The Color CAF0D9.AFD3BDThe Color AFD3BD.94B8A2The Color 94B8A2.7A9D88The Color 7A9D88.61836FThe Color 61836F.486956The Color 486956.31513FThe Color 31513F.Brightness Gradient
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%.31513FThe Color 31513F.000000The Color 000000.000B00The Color 000B00.042415The Color 042415.1A3A29The Color 1A3A29.31513FThe Color 31513F.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the Hex color 31513F by changing the saturation by 10% instead.

Saturation GradientSimilar to the brightness gradients but the following show a change of the {format} color {color} by changing the saturation by 10% instead.31513FThe Color 31513F.005123The Color 005123.005124The Color 005124.095128The Color 095128.11512DThe Color 11512D.195131The Color 195131.215136The Color 215136.29513AThe Color 29513A.31513FThe Color 31513F.Saturation Gradient
Saturation GradientSimilar to the brightness gradients but the following show a change of the {format} color {color} by changing the saturation by 10% instead.31513FThe Color 31513F.7A5168The Color 7A5168.725163The Color 725163.6A515FThe Color 6A515F.62515AThe Color 62515A.5A5156The Color 5A5156.515151The Color 515151.49514DThe Color 49514D.415148The Color 415148.395144The Color 395144.31513FThe Color 31513F.Saturation Gradient

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.414E34The Color 414E34.22524DThe Color 22524D.31513FThe Color 31513F.414E34The Color 414E34.Analogous

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.31513FThe Color 31513F.65423AThe Color 65423A.3D4A66The Color 3D4A66.31513FThe Color 31513F.Triad

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.31513FThe Color 31513F.513143The Color 513143.31513FThe Color 31513F.Complementary

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.664047The Color 664047.504661The Color 504661.31513FThe Color 31513F.664047The Color 664047.Split Complementary

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.31513FThe Color 31513F.5D4631The Color 5D4631.5F4155The Color 5F4155.284F64The Color 284F64.31513FThe Color 31513F.Square

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.31513FThe Color 31513F.66413EThe Color 66413E.5F4155The Color 5F4155.1B5256The Color 1B5256.31513FThe Color 31513F.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.31513FThe Color 31513F.363636The Color 363636.B5B5B5The Color B5B5B5.2E3631The Color 2E3631.435131The Color 435131.5C6961The Color 5C6961.31513FThe Color 31513F.Sweetspot

SVG Images

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

#31513F

Previews

White Background

This preview shows how the Hex color 31513F looks on a white background.

The color contrast ratio for these colors is 8.83, 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 Hex color 31513F looks on a black background.

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

Hex 31513F Background

This preview shows how black text looks on a background with the Hex color 31513F.

This preview shows how white text looks on a background with the Hex color 31513F.


CSS Examples


The CSS property to change the color of the text to Hex 31513F is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:#31513F }.

This example shows how text in the color #31513F looks like.

If you want to add a text shadow in that color use .shadow{ text-shadow: 4px 4px 2px #31513F }.

Here you see how black text with a 4 pixel #31513F 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 Hex 31513F is called "border". The border property can be set on classes, ids or directly on the HTML element .border, #border, table{ border:4px solid #31513F }.

If only the border color should be changed .border{ border-color:#31513F } can be used.

Here you see how a box with a 4 pixel #31513F colored shadow looks like.

If you want to add a box shadow in that color use .boxshadow{ -moz-box-shadow:4px 4px 4px 4px #31513F; -webkit-box-shadow:4px 4px 4px 4px #31513F; box-shadow:4px 4px 4px 4px #31513F }.

Background

The CSS property to change the background color of an element to Hex 31513F is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:#31513F }.

If only the background color should be changed .background{ background-color:#31513F } 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.

Upskill your career and get 10% off on a Udacity Nanodegrees ProgramAdvertisment🛈

How-to use Converting Colors

To convert, paste a string in one of these color formats, for example, "31513F", 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 "146°, 40%, 32%" 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(146°, 40%, 32%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(31.57, -16.38, 6.92)", "CIELCH(32, 17.782, 157.101)", "YXY(6.8967, 0.2874, 0.3882)" and "CMYK(0.40, 0.00, 0.22, 0.68)".