#00008B
darkblue
#00008B is the CSS named color "darkblue", an exact match. In RGB it breaks down to red 0, green 0, and blue 139 out of 255 each. In HSL terms that's a hue of 240°, 100% saturation, and 27% lightness: quite dark, close to black — it works well as body text on a light background or as a near-black UI surface.
Every format
| HEX | #00008b |
| RGB | rgb(0, 0, 139) |
| HSL | hsl(240° 100% 27%) |
| HSB | hsb(240° 100% 55%) |
| OKLCH | oklch(29% 0.199 264°) |
| OKLAB | oklab(29% -0.021 -0.198) |
| LCH | lch(13% 83.5 301°) |
| CMYK | cmyk(100% 100% 0% 45%) |
Shades (darker)
#00008b · #020083 · #04007c · #070074 · #0a006d
Tints (lighter)
#00008b · #0226a3 · #123fbb · #2556d3 · #396dec
Shades mix #00008B toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 15.30:1 — AAA
On black: 1.37:1 — fails
Frequently asked
- What is #00008B in RGB?
- #00008B is rgb(0, 0, 139) — red 0, green 0, blue 139 out of 255 each.
- Does #00008B pass WCAG contrast on a white background?
- It has a contrast ratio of 15.30:1 against white, which passes WCAG AAA for normal text.
- What's a good background color to pair with #00008B?
- White text or a white background gives better contrast (15.30:1) than black (1.37:1).