Night Shift color: hex code #2A5C6A
Night Shift has the hex code #2A5C6A. It is a dark, desaturated cyan.
In the RGB color model it is made of 16.5% red, 36.1% green and 41.6% blue (42, 92, 106).
Its hue angle is 193°, with 43% saturation and 29% lightness. For print, the CMYK equivalent is 60% cyan, 13% magenta, 0% yellow and 58% black.
White text is the more readable choice on this background (contrast 7.4:1).
Night Shift (#2A5C6A) color codes
| HEX | #2A5C6A | |
|---|---|---|
| RGB | rgb(42, 92, 106) | |
| RGB percent | rgb(16.5%, 36.1%, 41.6%) | |
| HSL | hsl(193, 43%, 29%) | |
| HSV / HSB | hsv(193, 60%, 42%) | |
| CMYK | cmyk(60%, 13%, 0%, 58%) | |
| CIE LAB | lab(36.34, -12.27, -13.09) | |
| CIE LCH | lch(36.34, 17.94, 226.84) | |
| CIE XYZ | xyz(7.382, 9.186, 15.017) | |
| Decimal | 2776170 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Night Shift, 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 #2A5C6A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.84:1 | Fail | Fail | Fail |
| Sample text | 7.4:1 | Pass | Pass | Pass |
| #2A5C6A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.4:1 | Pass | Pass | Pass |
| Sample text | 2.84: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 #2A5C6A looks to people with the most common types of color vision deficiency.
#535a6bProtanopia
no red cones#4a526aDeuteranopia
no green cones#006160Tritanopia
no blue cones#555555Achromatopsia
no color vision
CSS examples
.background { background-color: #2a5c6a; }
.text { color: #2a5c6a; }
.border { border: 2px solid #2a5c6a; }
.transparent { background-color: rgb(42 92 106 / 50%); }
.gradient { background: linear-gradient(to right, #2a5c6a, #2a3c6a); }
Similar colors
#395d68Under the Sea#336172Atlantis#33616aAfter the Storm#20586dNight Edition#005a6fDeep Lagoon#00586dSea Creature#035568Plunge#005765Abyssal Waters
Closest common color name: Dark Slate Gray.
See #2A5C6A on its hex code page
Questions
- What color is #2A5C6A?
- #2A5C6A is a dark, desaturated cyan known as Night Shift. It belongs to the teal family of colors.
- What is the RGB value of Night Shift?
- The RGB value is 42, 92, 106: 42 red, 92 green and 106 blue on a 0 to 255 scale.
- What is the complementary color of Night Shift?
- The complementary color is #6A382A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2A5C6A?
- White text. Black text has a contrast ratio of 2.84:1 and white text 7.4:1. WCAG asks for at least 4.5:1 for normal text.