Maroon Colors  ·  Color Library

Palettes / Colors / #282940

#282940 — Deep Dusty Blue

#282940 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 #282940 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.

#282940 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 #3F3E27; it also sits naturally between #27343F and #32273F. In the palettes below you can see it working alongside real color combinations from our collection.

#282940 · RGB 40, 41, 64

Download PNG swatch SVG

Color values

HEX#282940
RGB40, 41, 64
HSL237°, 23%, 20%
HSV237°, 38%, 25%
CMYK38%, 36%, 0%, 75%
XYZ2.59, 2.41, 5.18
Yxy2.41, 0.2548, 0.2365
CIE-Lab17.49, 6.16, -14.71
Hunter Lab15.52, 3.57, -10.15

RGB & CMYK percentages

Red 16% · Green 16% · Blue 25%

Cyan 38% · Magenta 36% · Yellow 0% · Key 75%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #282940 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #282940 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #282940

.text { color: #282940; }
.background { background-color: #282940; }
.border { border: 3px solid #282940; }
.text-rgb { color: rgb(40, 41, 64); }
.text-hsl { color: hsl(237, 23%, 20%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #282940; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(40, 41, 64, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #282940; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(40, 41, 64, 0.8); }

HTML: <p style="color:#282940">Text here</p> · <div style="background-color:#282940">Div content here</div>

Shades of #282940

#232438#212235#1D1E2F#1B1C2C#181826#14141F#12121C#0E0E16#0C0C13#08080D

Tints of #282940

#373958#45476E#545787#62659D#7B7EAD#9496BC#AAACCA#C3C5DA#D9DAE7#F2F3F7

Tones of #282940

#292A3D#2B2C3B#2C2D3A#2E2E38#2F3037#313235

Color harmonies

Complementary — #3F3E27:

Analogous:

Triadic:

Contrast & accessibility

Against white text14.18:1 AAA
Against black text1.48:1 Fails

Best text color on #282940: #FFFFFF.

Semi-transparent (opacity) text on #282940

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:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #282940: ·

How #282940 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #28283ADeuteranopia · #282839Tritanopia · #283635

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:

Bootstrap dark · #212529Tailwind neutral 600 · #525252Tailwind stone 600 · #57534E

Palettes with a similar color

These palettes use a close neighbour of #282940 rather than the exact color:

Palette 0f0f0f
#0F0F0F · #232D3F · #005B41 · #008170
Palette 272343
#272343 · #FFFFFF · #E3F6F5 · #BAE8E8
Palette 282f44
#282F44 · #E6AF2E · #F5D061 · #ECECEC
Palette F1f6f9
#F1F6F9 · #394867 · #212A3E · #9BA4B5
Palette 202940
#202940 · #4B4038 · #9A8678 · #CAAA98
Palette 2f2342
#2F2342 · #E42F45 · #B42B3F · #7CA0E5

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#232D3F#272343#282F44#212A3E#202940#2F2342#2A2438#22213D#22223B#1F2544#332941#25294B

Browse neighbouring colors

← #28293F  ·  #282941 →

Frequently asked questions

What color is #282940?

#282940 is Deep Dusty Blue, a blue color (RGB 40, 41, 64). Its closest standard named color is DarkSlateGray.

What is the RGB and HSL of #282940?

#282940 is RGB 40, 41, 64 — HSL 237°, 23%, 20% — CMYK 38%, 36%, 0%, 75%.

What colors go with #282940?

Its complement is #3F3E27; analogous partners are #27343F and #32273F. It also appears in 6+ palettes in our collection.

Can I use #282940 for text?

White text on #282940 has a contrast ratio of 14.18:1 (passes WCAG AA); black text gives 1.48:1.