#505168 color
The hex color #505168 is a dark, grayish blue.
In the RGB color model it is made of 31.4% red, 31.8% green and 40.8% blue (80, 81, 104).
Its hue angle is 238°, with 13% saturation and 36% lightness. For print, the CMYK equivalent is 23% cyan, 22% magenta, 0% yellow and 59% black.
The closest named color is Intergalactic (#4D516C), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.73:1).
#505168 color codes
| HEX | #505168 | |
|---|---|---|
| RGB | rgb(80, 81, 104) | |
| RGB percent | rgb(31.4%, 31.8%, 40.8%) | |
| HSL | hsl(238, 13%, 36%) | |
| HSV / HSB | hsv(238, 23%, 41%) | |
| CMYK | cmyk(23%, 22%, 0%, 59%) | |
| CIE LAB | lab(35.18, 5.14, -13.4) | |
| CIE LCH | lch(35.18, 14.35, 291.01) | |
| CIE XYZ | xyz(8.749, 8.59, 14.291) | |
| Decimal | 5263720 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505168, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #505168 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.72:1 | Fail | Fail | Fail |
| Sample text | 7.73:1 | Pass | Pass | Pass |
| #505168 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.73:1 | Pass | Pass | Pass |
| Sample text | 2.72:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #505168 looks to people with the most common types of color vision deficiency.
#4b5469Protanopia
no red cones#4a5267Deuteranopia
no green cones#4b5559Tritanopia
no blue cones#535353Achromatopsia
no color vision
CSS examples
.background { background-color: #505168; }
.text { color: #505168; }
.border { border: 2px solid #505168; }
.transparent { background-color: rgb(80 81 104 / 50%); }
.gradient { background: linear-gradient(to right, #505168, #5b5068); }
Similar colors
#4d516cIntergalactic#555570Majestic Magic#565266Freefall#4f566cHeavy Violet#525463Black Orchid#545663Blackwater#4c567aDeep Indigo#484753Gun Powder
Closest common color name: Charcoal.
Questions
- What color is #505168?
- #505168 is a dark, grayish blue, closest to the named color Intergalactic. It belongs to the blue family of colors.
- What is the RGB value of #505168?
- The RGB value is 80, 81, 104: 80 red, 81 green and 104 blue on a 0 to 255 scale.
- What is the complementary color of #505168?
- The complementary color is #686750, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505168?
- White text. Black text has a contrast ratio of 2.72:1 and white text 7.73:1. WCAG asks for at least 4.5:1 for normal text.