:
logo qtransform

  to  




#2A1257 color HEX code RGB, HSL, CMYK

COLOR CODE FOR HEXA COLOR #2A1257
#2A1257

   In a RGB color space, hex #2A1257 is composed of 16% red, 7% green and 34% blue.
RGB color code is composed of a hexadecimal 2A red (42/255), a 12 green (18/255) and a 57 blue component (87/255). The decimal RGB color code is rgb(42,18,87)
In CMYK color space, it is composed of 52% cyan, 79% magenta, 0% yellow and 66% black.
It has a hue angle of 260.87o degrees, a saturation of 66% and a lightness of 21%.
Closest websafe color is: #330066 rgb (51, 0, 102).
twitter  facebook  whatsapp


Color conversion




#2A1257
rgb(42,18,87)
=16%
from 255
7%
from 255
34%
from 255
=52
from 100
79
from 100
0
from 100
66
from 100
R: 42
red
G: 18
green
B: 87
blue
C: 52
cyan
M: 79
magenta
Y: 0
yellow
K: 66
black
Hexa colorRGB color chartCMYK color chart

Convert color


The hexadecimal color #2A1257 has RGB values of R:42, G:18, B:87 and CMYK values of C:52, M:79, Y:0, K:66. Its decimal value is 2757207.Binary code is 1010100001001001010111
In print we use cyan, yellow, magenta and black (CMYK) inks because usually we print on a white paper.

Hex color2A1257 #2A1257
RGB decimal42, 18, 87 rgb(42, 18, 87)
RGB %16, 7, 34 rgb(16%, 7%, 34%)
RGB Adobe41, 25, 86
CMYK %52, 79, 0, 66 52%, 79%, 0%, 66%
HSL260.87o, 66, 21 hsl(260.87o, 66%, 21%)
HSV (HSB)261o, 79%, 34% hsv(261o, 79%, 34%)
Web Safe color#330066 rgb (51, 0, 102)
XYZ2.891, 1.613 9.176
xyY0.21, 0.12, 1.61
Hunter-Lab12.7, 19.39, -35.97
CMY84%, 93%, 66%
Lab12.78, 26.02, -37.83
Binary color
2A 12 57
101010 10010 1010111

Shades and tints of #2A1257


A shade is achieved by adding black to original color on hue code.
A tint is created by mixing color with white.
Use the palette to pick a color or the sliders to set the RGB, HSV, CMYK components.
For example here: #090311 is the darkest color, and: #D5D0DE is the lightest one.

Tint color variation #2A1257


Shade color variation


Tones of #2A1257
A tone is produced by adding gray to any pure hue. In this case, #331D5B is the less saturated color, and #635A72 is the most saturated one.


Alternatives to #2A1257


Below, you can see some colors close to #2A1257. Having a set of related colors can be useful if you need an inspirational alternative or other close colors to your original color choice.




Quick use #2A1257


How to use this color on webpages, scripts or other programming languages using html, CSS, dhtml, JAVA, .NET, openGL, Swift, Xojo

Color of the text Background color example
Color of the text
Background color example

<font color="#2A1257;">Text here</font>

<div style="background-color:#2A1257;">Text here</div>



Color preview on black background Color preview on white background
color preview on black background
color preview on white background
HTML code

<div style="background-color:#000000"> <font color="#2A1257;">Text here</font> </div>

HTML code

<div style="background-color:#FFFFFF; border: 1px dotted #999999;"> <font color="#2A1257;">Text here</font> </div>



Div box shadow Text shadow css code
box shadow for color #2A1257
text shadow css code
HTML code

<div style="background-color:#FFFFFF; box-shadow: 2px 2px 7px 1px #2A1257;"></div>

CSS code

.box-shadow: 2px 2px 7px 1px;

CSS code

.text-shadow: 1px 2px 2px #2A1257;



Box border html code Text shadow with RGB values for color #2A1257
box border html code for color #2A1257

text shadow with RGB values

HTML code

<div style="background-color:#FFFFFF; border:1px solid #2A1257;"></div>

CSS code with RGB

.text-shadow: 0px 2px 2px rgba(42, 18, 87, 1.4);



Pre-formatted code 2A1257 code for script / programming
HTML, CSS: = #2A1257; rgb(42, 18, 87)
Java: = new Color(42, 18, 87)
.NET: = Color.FromArgb (42, 18, 87);
Xojo: = rgb (42, 18, 87, 0);
openGL: = glColor3f (0.16f, 0.07f, 0.34f);
Swift: = UIColor(red:0.16, green:0.07, blue:0.34, alpha:1.00000);
Objective-C: = [UIColor colorWithRed:0.16 green:0.07 blue:0.34 alpha:1.00000];


Color schemes with #2A1257


Monochromatic color
monochromatic color scheme

Monochromatic color schemes are easy to create because they use only one color. Monochromatic schemes use different tones from the same angle on the color wheel (the same angle).Just change color saturation +10% and you have a new monocromatic color. On our case color: 79% has a #2A1257 saturation. Adding 79% + 10% = 89% saturation for our new color #140530. Decreasing 79% - 10% = 69% saturation for other monochromatic color #45277D.

Analogous color
analogous color scheme

Analogous color schemes are created by using colors that are next to each other on the color wheel. Just +/- 30o on sides of the color hue angle.

Complementary color
complementary color scheme
Complementary schemes are created by combining colors from opposite sides of the color wheel. Simple add 180 degrees to color hue / angle and you have the complementary color. On our case color: #2A1257 has a 261o angle. Adding 261o + 180o = 81oo for our new complementary color #3F5712.

Split color
split color scheme

Compound schemes or split complementary schemens are almost the same as complementary schemes.
Instead of using colors that are opposites, it uses colors on both sides of the opposite hue angle.
On our case color: #2A1257 has a 261o angle. Adding 261o + 180o+30o = 111o for our first complementary color #1C5712. Decreasing 261o + 180o-30o = 51o for the second complementary color #574C12.

Tiradic color
tiradic color scheme

Triadic schemes are made up of hues/angles equally spaced around color wheel. Add and decrease +/- 120 degrees on both sides of the color hue angle.

Tetradic color
tetradic color scheme

Tetradic schemes are made up of hues/angles spaced around color wheel. Add 120,180,300 degrees on the color hue angle.