Palettes / Colors / #282942
#282942 — Deep Dusty Blue
#282942 is a blue color we call Deep Dusty Blue, closest to the named color DarkSlateGray (#2F4F4F). It belongs to the blue family.
Color name
Closest CSS keyword: darkslategray (#2F4F4F) — not an exact match. CSS darkslategray gives you #2F4F4F, a different color; use #282942 when you need this exact shade.
Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.
#282942 is a cool blue color associated with trust, calm and professionalism. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.
Its strongest partner is its complement #434228; it also sits naturally between #283643 and #352843. In the palettes below you can see it working alongside real color combinations from our collection.
Color values
| HEX | #282942 |
|---|---|
| RGB | 40, 41, 66 |
| HSL | 238°, 25%, 21% |
| HSV | 238°, 39%, 26% |
| CMYK | 39%, 38%, 0%, 74% |
| XYZ | 2.65, 2.43, 5.48 |
| Yxy | 2.43, 0.2510, 0.2300 |
| CIE-Lab | 17.60, 6.81, -15.93 |
| Hunter Lab | 15.59, 3.97, -11.21 |
RGB & CMYK percentages
Red 16% · Green 16% · Blue 26%
Cyan 39% · Magenta 38% · Yellow 0% · Key 74%
CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.
Previews
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
CSS code for #282942
.text { color: #282942; }
.background { background-color: #282942; }
.border { border: 3px solid #282942; }
.text-rgb { color: rgb(40, 41, 66); }
.text-hsl { color: hsl(238, 25%, 21%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #282942; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(40, 41, 66, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #282942; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(40, 41, 66, 0.8); }
HTML: <p style="color:#282942">Text here</p> · <div style="background-color:#282942">Div content here</div>
Shades of #282942
Tints of #282942
Tones of #282942
Color harmonies
Complementary — #434228:
Analogous:
Triadic:
Contrast & accessibility
| Against white text | 14.13:1 AAA |
|---|---|
| Against black text | 1.49:1 Fails |
Best text color on #282942: #FFFFFF.
Semi-transparent (opacity) text on #282942
Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:
Smaller body text shows the effect best.
Blended color: · Contrast against #282942: ·
How #282942 looks with color blindness
Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:
Closest design-system colors
The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:
Palettes with a similar color
These palettes use a close neighbour of #282942 rather than the exact color:
Similar colors
The closest colors that actually appear in our palette collection — click any to open its page:
Browse neighbouring colors
Frequently asked questions
What color is #282942?
#282942 is Deep Dusty Blue, a blue color (RGB 40, 41, 66). Its closest standard named color is DarkSlateGray.
What is the RGB and HSL of #282942?
#282942 is RGB 40, 41, 66 — HSL 238°, 25%, 21% — CMYK 39%, 38%, 0%, 74%.
What colors go with #282942?
Its complement is #434228; analogous partners are #283643 and #352843. It also appears in 6+ palettes in our collection.
Can I use #282942 for text?
White text on #282942 has a contrast ratio of 14.13:1 (passes WCAG AA); black text gives 1.49:1.