#5F5F81 color
The hex color #5F5F81 is a grayish blue.
In the RGB color model it is made of 37.3% red, 37.3% green and 50.6% blue (95, 95, 129).
Its hue angle is 240°, with 15% saturation and 44% lightness. For print, the CMYK equivalent is 26% cyan, 26% magenta, 0% yellow and 49% black.
The closest named color is Heron (#6A6887), a difference of 3.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.1:1).
#5F5F81 color codes
| HEX | #5F5F81 | |
|---|---|---|
| RGB | rgb(95, 95, 129) | |
| RGB percent | rgb(37.3%, 37.3%, 50.6%) | |
| HSL | hsl(240, 15%, 44%) | |
| HSV / HSB | hsv(240, 26%, 51%) | |
| CMYK | cmyk(26%, 26%, 0%, 49%) | |
| CIE LAB | lab(41.54, 8.11, -18.95) | |
| CIE LCH | lch(41.54, 20.61, 293.17) | |
| CIE XYZ | xyz(12.773, 12.202, 22.447) | |
| Decimal | 6250369 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5F5F81, 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 #5F5F81 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.44:1 | Fail | Fail | Pass |
| Sample text | 6.1:1 | Pass | Fail | Pass |
| #5F5F81 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.1:1 | Pass | Fail | Pass |
| Sample text | 3.44:1 | Fail | Fail | Pass |
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 #5F5F81 looks to people with the most common types of color vision deficiency.
#566382Protanopia
no red cones#556180Deuteranopia
no green cones#57656bTritanopia
no blue cones#626262Achromatopsia
no color vision
CSS examples
.background { background-color: #5f5f81; }
.text { color: #5f5f81; }
.border { border: 2px solid #5f5f81; }
.transparent { background-color: rgb(95 95 129 / 50%); }
.gradient { background: linear-gradient(to right, #5f5f81, #705f81); }
Similar colors
#6a6887Heron#555570Majestic Magic#655883Berry Jam#6b6c89Dark Prince#4c567aDeep Indigo#4e5481Dusk#675a75Plummy#4d5b88Wizard
Closest common color name: Space Gray.
Questions
- What color is #5F5F81?
- #5F5F81 is a grayish blue, closest to the named color Heron. It belongs to the blue family of colors.
- What is the RGB value of #5F5F81?
- The RGB value is 95, 95, 129: 95 red, 95 green and 129 blue on a 0 to 255 scale.
- What is the complementary color of #5F5F81?
- The complementary color is #81815F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5F5F81?
- White text. Black text has a contrast ratio of 3.44:1 and white text 6.1:1. WCAG asks for at least 4.5:1 for normal text.