darkblue — #00008B
#00008B
rgb(0, 0, 139) · hsl(240, 100%, 27%) · CSS keyword darkblue
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| darkblue on white | 15.3:1 | AA | AA |
| darkblue on black | 1.37:1 | — | — |
As a background, darkblue takes white text: 15.3:1 against 1.37:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: darkblue;
color: #00008b;
color: rgb(0 0 139);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to darkblue
- navy — #000080
- mediumblue — #0000CD
- midnightblue — #191970
- blue — #0000FF
- indigo — #4B0082
- black — #000000
Frequently asked questions
What is the hex code for darkblue?
The hex code for darkblue is #00008B — RGB 0, 0, 139.
Can I use darkblue for text?
Yes. darkblue reaches 15.3:1 against white, past the 4.5:1 that WCAG AA asks for body text.
Should text on darkblue be black or white?
White — 15.3:1 against 1.37:1 the other way.
Other named colours
- darkcyan — #008B8B
- darkgoldenrod — #B8860B
- darkgray — #A9A9A9
- darkgreen — #006400
- darkkhaki — #BDB76B
- darkmagenta — #8B008B
- darkolivegreen — #556B2F
- darkorange — #FF8C00
- darkorchid — #9932CC
- darkred — #8B0000
- darksalmon — #E9967A
- darkseagreen — #8FBC8F
#00008B in full — tints, shades and harmonies · All named colours · Colour reference