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
Hex2B2B2B
RGB43, 43, 43
RGB Percent17%, 17%, 17%
CMY0.8314, 0.8314, 0.8314
CMYK0.00, 0.00, 0.00, 0.83
HSL0°, 0%, 17%
HSV0°, 0%, 17%
XYZ2.2962, 2.4158, 2.6308
Conversions Part 2
FormatColor
RYB43, 43, 43
Decimal2829099
CIELab17.53, 0.00, -0.00
CIELCh18, 0.003, 296.813
Yxy2.4158, 0.3127, 0.3290
Android (android.graphics.Color)4281019179 (0xFF2B2B2B)
YUV43.0000, 0.0000, 0.0000

Details

The Hex color 2B2B2B is a dark color, and the websafe version is hex 333333. A complement of this color would be 2B2B2B, and the grayscale version is 2B2B2B.

A 20% lighter version of the original color is 585858, and 000000 is the 20% darker color. If you saturate the color by 10%, you get 2B2727, and if you desaturate by 10%, it is 2B2F2F.

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 Hex color 2B2B2B 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 Hex color 2B2B2B 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%.2B2B2BThe Color 2B2B2B.FFFFFFThe Color FFFFFF.F8F8F8The Color F8F8F8.DBDBDBThe Color DBDBDB.C0C0C0The Color C0C0C0.A4A4A4The Color A4A4A4.8A8A8AThe Color 8A8A8A.717171The Color 717171.585858The Color 585858.414141The Color 414141.2B2B2BThe Color 2B2B2B.Brightness Gradient

🖌️ View as Color Bucket

Brightness Gradient[Translation for "HARMONY_BRIGHTNESS_1_TEXT" not found]2B2B2BThe Color 2B2B2B.000000The Color 000000.171717The Color 171717.2B2B2BThe Color 2B2B2B.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.2B2B2BThe Color 2B2B2B.2B0404The Color 2B0404.2B0909The Color 2B0909.2B0D0DThe Color 2B0D0D.2B1111The Color 2B1111.2B1616The Color 2B1616.2B1A1AThe Color 2B1A1A.2B1E1EThe Color 2B1E1E.2B2222The Color 2B2222.2B2727The Color 2B2727.2B2B2BThe Color 2B2B2B.Saturation Gradient

🖌️ View as Color Bucket

Saturation Gradient[Translation for "HARMONY_SATURATION_1_TEXT" not found]2B2B2BThe Color 2B2B2B.2B5252The Color 2B5252.2B4D4DThe Color 2B4D4D.2B4949The Color 2B4949.2B4545The Color 2B4545.2B4141The Color 2B4141.2B3C3CThe Color 2B3C3C.2B3838The Color 2B3838.2B3434The Color 2B3434.2B2F2FThe Color 2B2F2F.2B2B2BThe Color 2B2B2B.Saturation Gradient

🖌️ View as Color Bucket

Advertisment

Harmonies

Sweetspot

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

SweetspotThe sweet spot groups the original color and five complimentary colors.2B2B2BThe Color 2B2B2B.9C9C9CThe Color 9C9C9C.1C1C1CThe Color 1C1C1C.383838The Color 383838.2B2B2BThe Color 2B2B2B.Sweetspot

🖌️ View as Color Bucket

SVG Images

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

#2B2B2B
Advertisment

Previews

White Background

 

This preview shows how the Hex color 2B2B2B looks on a white background.

The color contrast ratio for these colors is 14.16, 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 2B2B2B looks on a black background.

The color contrast ratio for these colors is 1.48, 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 2B2B2B Background

 

This preview shows how black text looks on a background with the Hex color 2B2B2B.

 

This preview shows how white text looks on a background with the Hex color 2B2B2B.

Color Blindness Simulation


Dichromacy

Original Color
2B2B2B
Protanopia
2C2B2B
Deuteranopia
2F2A2B
Tritanopia
2B2B2E

Trichromacy

Original Color
2B2B2B
Protanomaly
2C2B2B
Deuteranomaly
2E2A2B
Tritanomaly
2B2B2D

Monochromacy

Original Color
2B2B2B
Achromatopsia
2B2B2B
Achromatomaly
2B2B2B
Advertisment

CSS Examples


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

This example shows how text in the color #2B2B2B looks like.

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

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

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

Here you see how a box with a 4 pixel #2B2B2B colored shadow looks like.

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

Background

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

If only the background color should be changed .background{ background-color:#2B2B2B } 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, "2B2B2B", 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 "0°, 0%, 17%" 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(0°, 0%, 17%)" will give you the correct HSV color as there is no need to guess the format. Other examples would be "CIELAB(17.53, 0.00, -0.00)", "CIELCH(18, 0.003, 296.813)", "YXY(2.4158, 0.3127, 0.3290)" and "CMYK(0.00, 0.00, 0.00, 0.83)".


Advertisment