#505FA0
A medium, moderate blue closely aligning with Darkslateblue.
About #505FA0
The precise color #505FA0 is an excellent choice for modern design projects. It is closely associated with the named CSS color Darkslateblue. To achieve this exact tint on a monitor, you would use an RGB mix of 80, 95, and 160.
Translating this color to physical media requires the CMYK color model. The color uses 50% Cyan, 41% Magenta, 0% Yellow, and 37% Black. With a hue angle of 228.8 degrees, it sits comfortably in the blue spectrum.
From a UX and accessibility standpoint, contrast is paramount. Because it is a medium color, it is generally recommended to use #FFFFFF text. You can view the detailed AAA and AA pass/fail metrics in the table below.
Color Space Conversions
HEX#505FA0
RGB80, 95, 160
HSL228.8°, 33.3%, 47.1%
CMYK50%, 41%, 0%, 37%
HSV228.8°, 50.0%, 62.7%
LAB41.9, 12.9, -37.1
XYZ13.7, 12.4, 34.9
Decimal5267360
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
6.02:1
Text on #FFFFFF
AA
3.49:1
Text on #000000
AA Large
5.76:1
Text on #F8FAFC
AA
2.96:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #505FA0;
}
.text-color {
color: #505FA0;
}
.border-color {
border: 2px solid #505FA0;
}