Converting Colors

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

Conversions

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

FormatColor
HSL173°, 27%, 15%
CIELCh18, 8.973, 186.242
Yxy2.5180, 0.2686, 0.3411
Android (android.graphics.Color)4279971885 (0xFF1B302D)
YUV41.3790, 1.7852, -12.6104

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


Details

The CIELCh color 18, 8.973, 186.242 is a dark color, and the websafe version is hex 003333. A complement of this color would be 13, 10.798, 13.125, and the grayscale version is 17, 0.003, 296.813.

A 20% lighter version of the original color is 38, 9.051, 186.433, and 0, 0.000, 0.000 is the 20% darker color. If you saturate the color by 10%, you get 18, 10.744, 185.495, and if you desaturate by 10%, it is 18, 7.050, 186.961.

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 CIELCh color 18, 8.973, 186.242 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%.18, 8.973, 186.242The Color 18, 8.973, 186.242.100, 8.973, 186.242The Color 100, 8.973, 186.242.98, 8.973, 186.242The Color 98, 8.973, 186.242.88, 8.973, 186.242The Color 88, 8.973, 186.242.78, 8.973, 186.242The Color 78, 8.973, 186.242.68, 8.973, 186.242The Color 68, 8.973, 186.242.58, 8.973, 186.242The Color 58, 8.973, 186.242.48, 8.973, 186.242The Color 48, 8.973, 186.242.38, 8.973, 186.242The Color 38, 8.973, 186.242.28, 8.973, 186.242The Color 28, 8.973, 186.242.18, 8.973, 186.242The Color 18, 8.973, 186.242.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%.18, 8.973, 186.242The Color 18, 8.973, 186.242.0, 8.973, 186.242The Color 0, 8.973, 186.242.8, 8.973, 186.242The Color 8, 8.973, 186.242.18, 8.973, 186.242The Color 18, 8.973, 186.242.Brightness Gradient

Saturation Gradient

Similar to the brightness gradients but the following show a change of the CIELCh color 18, 8.973, 186.242 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.18, 8.973, 186.242The Color 18, 8.973, 186.242.17, 17.025, 181.810The Color 17, 17.025, 181.810.17, 16.122, 182.296The Color 17, 16.122, 182.296.17, 14.928, 183.057The Color 17, 14.928, 183.057.17, 13.731, 183.907The Color 17, 13.731, 183.907.17, 12.337, 184.721The Color 17, 12.337, 184.721.18, 10.744, 185.495The Color 18, 10.744, 185.495.18, 8.973, 186.242The Color 18, 8.973, 186.242.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.18, 8.973, 186.242The Color 18, 8.973, 186.242.22, 11.033, 12.132The Color 22, 11.033, 12.132.22, 8.686, 11.514The Color 22, 8.686, 11.514.21, 6.335, 10.881The Color 21, 6.335, 10.881.21, 3.992, 10.229The Color 21, 3.992, 10.229.20, 1.669, 9.515The Color 20, 1.669, 9.515.20, 0.617, 189.295The Color 20, 0.617, 189.295.19, 2.846, 188.379The Color 19, 2.846, 188.379.19, 4.999, 187.669The Color 19, 4.999, 187.669.18, 7.050, 186.961The Color 18, 7.050, 186.961.18, 8.973, 186.242The Color 18, 8.973, 186.242.Saturation Gradient

Harmonies

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.18, 8.973, 186.242The Color 18, 8.973, 186.242.13, 10.798, 13.125The Color 13, 10.798, 13.125.18, 8.973, 186.242The Color 18, 8.973, 186.242.Complementary

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.18, 8.973, 186.242The Color 18, 8.973, 186.242.18, 8.973, 56.242The Color 18, 8.973, 56.242.18, 8.973, 6.242The Color 18, 8.973, 6.242.18, 8.973, 236.242The Color 18, 8.973, 236.242.18, 8.973, 186.242The Color 18, 8.973, 186.242.Rectangle

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.18, 8.973, 186.239The Color 18, 8.973, 186.239.12, 0.003, 296.813The Color 12, 0.003, 296.813.65, 0.008, 296.813The Color 65, 0.008, 296.813.11, 2.445, 188.272The Color 11, 2.445, 188.272.18, 16.388, 138.667The Color 18, 16.388, 138.667.25, 3.581, 188.309The Color 25, 3.581, 188.309.18, 8.973, 186.239The Color 18, 8.973, 186.239.Sweetspot

SVG Images

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

#1B302D

Previews

White Background

This preview shows how the CIELCh color 18, 8.973, 186.242 looks on a white background.

The color contrast ratio for these colors is 13.93, 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 CIELCh color 18, 8.973, 186.242 looks on a black background.

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

CIELCh 18, 8.973, 186.242 Background

This preview shows how black text looks on a background with the CIELCh color 18, 8.973, 186.242.

This preview shows how white text looks on a background with the CIELCh color 18, 8.973, 186.242.


CSS Examples


The CSS property to change the color of the text to CIELCh 18, 8.973, 186.242 is called "color". The color property can be set on classes, ids or directly on the HTML element .text, #text, p{ color:rgb(27, 48, 45) }.

This example shows how text in the color rgb(27, 48, 45) looks like.

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

Here you see how black text with a 4 pixel rgb(27, 48, 45) 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 CIELCh 18, 8.973, 186.242 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(27, 48, 45) }.

If only the border color should be changed .border{ border-color:rgb(27, 48, 45) } can be used.

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

Background

The CSS property to change the background color of an element to CIELCh 18, 8.973, 186.242 is called "background". The background property can be set on classes, ids or directly on the HTML element .background, #background, body{ background:rgb(27, 48, 45) }.

If only the background color should be changed .background{ background-color:rgb(27, 48, 45) } 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, "1B302D", 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 "173°, 43%, 19%" 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(173°, 43%, 19%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(18.00, -8.92, -0.98)", "CIELCH(18, 8.973, 186.242)", "YXY(2.5180, 0.2686, 0.3411)" and "CMYK(0.43, 0.00, 0.05, 0.81)".