Dark blue
Dark blue is a vivid shade of blue. Hex code #00008B.
Dark blue color codes
- CSS name
darkblue - HEX
#00008B - RGB
rgb(0, 0, 139) - HSL
hsl(240, 100%, 27%) - OKLCH
oklch(28.8% 0.199 264.1)
HSB and CMYK values
- HSB / HSV
hsb(240, 100%, 55%) - CMYK
C100 M100 Y0 K45
White text
15.29:1 · passes WCAG AAA
Black text
1.37:1 · fails WCAG
Shades of dark blue
A lighter shade of dark blue is #113EBA (600).
Colors that go with dark blue
Complementary
Analogous
Triadic
The complementary color of dark blue is #8B8B00, close to olive.
Click a color to copy its hex code.
Colors similar to dark blue
- Navy#000080
Slightly darker
- Midnight blue#191970
More muted
- Medium blue#0000CD
Lighter, more vivid
- Indigo#4B0082
Lighter, more purple
- Dark slate blue#483D8B
Lighter, more purple, more muted
- Rebecca purple#663399
Lighter, more purple, more muted
Each compared with dark blue.
About this color
Dark blue in CSS and design
Dark blue is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same dark blue:
color: darkblue;
color: #00008B;
color: rgb(0, 0, 139);
color: hsl(240, 100%, 27%);What to know about dark blue
Dark blue (#00008B) and navy (#000080) are nearly the same color: only the blue channel differs, by 11 steps. Medium blue (#0000CD) and blue (#0000FF) continue the same series, with red and green at zero and more and more blue. White text on dark blue reaches 15.29:1.
Frequently asked questions
What is the hex code for dark blue?
#00008B. In CSS you can also use the keyword darkblue, which works in every browser.
What is dark blue in RGB and HSL?
In RGB it is rgb(0, 0, 139) and in HSL hsl(240, 100%, 27%). In CMYK it is about C100 M100 Y0 K45, though printed colors vary with paper and ink.
Should I use black or white text on dark blue?
White text works better: it has a contrast ratio of 15.29:1 and passes WCAG AAA. Black text reaches 1.37:1.
What is the complementary color of dark blue?
#8B8B00, close to olive. It sits opposite dark blue on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with dark blue?
For strong contrast, pair it with its complementary color #8B8B00. For a calmer look, combine it with its analogous neighbors #00468B and #46008B. The palette generator builds more combinations.