Gray color · XKCD survey name
Dark Blue Gray Color Code: #1F3B4D
Dark Blue Gray is a dark gray with a faint azure tint color with the hexadecimal value #1F3B4D. In RGB it is 31, 59, 77 and in HSL it is 203°, 43%, 21%. White text reads comfortably on it (11.72:1 contrast).
Also spelled “Dark Blue Grey”.
Dark Blue Gray color values
#1F3B4D
rgb(31, 59, 77)
hsl(203, 43%, 21%)
203, 60%, 30%
hwb(203 12% 70%)
60%, 23%, 0%, 70%
2046797
CMYK is a standard screen-to-print conversion. Printed results depend on inks, paper and color profiles.
What is Dark Blue Gray?
“Dark Blue Gray” is a crowd-sourced name from the XKCD Color Survey, in which participants typed names for colors they were shown. It is a popular everyday label rather than an official standard.
Its saturation is only 43%, so it behaves as a neutral, with 43% saturation (soft) and 21% lightness (dark). It is a cool color.
Compared with the other gray colors in the Aqeeb Studio library, it is lighter than 0% of them and more saturated than 96% of them.
Its relative luminance is 0.040, which makes it a dark color. That is below the 0.179 crossover point at which black and white text have equal contrast, so white text has the advantage.
Dark Blue Gray counts as a dark color: its HSL lightness is 21% and its relative luminance is 0.040. White text reads comfortably on it (11.72:1 contrast).
Text contrast on Dark Blue Gray
| Text | Preview | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|---|
| White text | Sample text | 11.72:1 Excellent | Pass | Pass | Pass | Pass |
| Black text | Sample text | 1.79:1 Poor | Fail | Fail | Fail | Fail |
Ratios use the WCAG 2 formula and are truncated, never rounded up. Test any pair with the contrast checker.
Colors that go with Dark Blue Gray
Complementary color
Complementary colors sit directly opposite each other on the color wheel (180° apart). They give the strongest hue contrast, which suits calls to action and accents.
Analogous colors
Analogous colors are neighbors on the wheel, 30° either side of the base hue. They blend smoothly and are easy to combine in backgrounds, gradients and illustrations.
Triadic colors
A triadic scheme uses three hues spaced 120° apart. It is lively yet balanced, and works best when one color leads and the other two act as accents.
Split-complementary colors
Split-complementary keeps the base color and uses the two colors on either side of its complement (150° and 210°). The contrast is strong but gentler than a direct complement.
Tetradic colors
A tetradic (rectangle) scheme combines two complementary pairs at 0°, 60°, 180° and 240°. It offers variety but needs one dominant color to stay balanced.
Monochromatic variants
Monochromatic variants keep the same hue and saturation and only change lightness, which makes them dependable for UI scales and subtle layered designs.
A “≈” before a name means the exact harmony color has no named match, so the link goes to the closest named color.
Tints and shades of Dark Blue Gray
Lighter tints (mixed with white)
Darker shades (mixed with black)
Select any swatch to copy its HEX code. Build longer scales with the tints and shades tool.
Similar colors
Where to use Dark Blue Gray
- Button, banner and badge backgrounds with white text (11.72:1 contrast)
- Dark-mode surfaces, headers and footers
- Tables, cards and dashboards
- Body text, borders and dividers
- Secondary buttons and disabled states
- Neutral page backgrounds
Use Dark Blue Gray in CSS
:root {
--color-dark-blue-gray: #1F3B4D;
}
.element {
color: var(--color-dark-blue-gray);
background-color: #1F3B4D;
border: 2px solid #1F3B4D;
}
Questions about Dark Blue Gray
What is the HEX code for Dark Blue Gray?
Dark Blue Gray is #1F3B4D.
What is the RGB value of Dark Blue Gray?
The RGB value of Dark Blue Gray is 31, 59, 77: 31 red, 59 green and 77 blue on a 0–255 scale, written rgb(31, 59, 77) in CSS.
What is the HSL value of Dark Blue Gray?
The HSL value of Dark Blue Gray is 203°, 43%, 21% (hue, saturation, lightness), written hsl(203, 43%, 21%) in CSS.
What is the CMYK value of Dark Blue Gray?
A standard conversion gives about C 60%, M 23%, Y 0%, K 70%. Real print results depend on the inks, paper and color profile, so treat CMYK here as a reference value.
Is Dark Blue Gray a light or dark color?
Dark Blue Gray counts as a dark color: its HSL lightness is 21% and its relative luminance is 0.040. White text reads comfortably on it (11.72:1 contrast).
How does Dark Blue Gray look with white text?
White text on Dark Blue Gray has a contrast ratio of 11.72:1, rated Excellent. It meets WCAG AA for normal text.
How does Dark Blue Gray look with black text?
Black text on Dark Blue Gray has a contrast ratio of 1.79:1, rated Poor. It falls below the WCAG minimum for text.
What colors go well with Dark Blue Gray?
Dark Brown is its complementary color, and Dark Teal sits beside it as an analogous color. Lighter and darker variants of the same hue also work well for monochromatic palettes.
Where can Dark Blue Gray be used?
It suits button, banner and badge backgrounds with white text (11.72:1 contrast); dark-mode surfaces, headers and footers; tables, cards and dashboards.
How do I use Dark Blue Gray in CSS?
Use color: #1F3B4D; for text, background-color: #1F3B4D; for fills, or define a custom property such as --color-dark-blue-gray: #1F3B4D; and reuse it with var(--color-dark-blue-gray).
About this color page
Crowd-sourced name from the XKCD Color Survey (CC0). Values are calculated from the HEX code; color names are labels, not trademarks or standards unless stated. Screens render colors differently, so always check important colors on your own device. See the disclaimer.