Dark Blue (CSS)
Dark Blue (CSS) is a near-black, saturated blue-violet color with the hex code #00008B (hue 240°, saturation 100%, lightness 27%). It is also the CSS named color darkblue.
- HEX
#00008B - RGB
rgb(0 0 139) - HSL
hsl(240 100% 27%) - OKLCH
oklch(28.8% 0.199 264)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Dark Blue (CSS) | #00008B | 0, 0, 139 | 240°, 100%, 27% | 100, 100, 0, 45 | 28.8% 0.199 264 |
Contrast with white text 15.30:1, with black text 1.37:1 — use white text on Dark Blue (CSS).
darkblue is one of the 148 named colors in CSS, with exactly this value, so color: darkblue works in any browser without a hex code.
Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work
Adjust Dark Blue (CSS)
Move the sliders to make Dark Blue (CSS) lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.
- HEX
#00008B - RGB
rgb(0 0 139) - HSL
hsl(240 100% 27%)
Variations of Dark Blue (CSS)
Text on Dark Blue (CSS)
WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.
Dark Blue (CSS) with color blindness
How Dark Blue (CSS) appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.
Tints and shades
Colors that go with Dark Blue (CSS)
Six color schemes built on Dark Blue (CSS) with classic harmony rules. The complementary scheme pairs it with Old Asparagus (#929000), the color opposite it on the color wheel.
- Dark Blue (CSS) Complementary Color Scheme#00008B#0203E2#929000#373E02#EEEE00
- Dark Blue (CSS) Analogous Color Scheme#008B8B#004488#00008B#4B0183#8B008B
- Dark Blue (CSS) Triadic Color Scheme#00008B#8B0000#008800#0000EE#3E0007
- Dark Blue (CSS) Split-complementary Color Scheme#00008B#884400#448800#020035#DD6600
- Dark Blue (CSS) Tetradic Color Scheme#00008B#880044#929000#008F48#0000EE
- Dark Blue (CSS) Monochromatic Color Scheme#01081C#020035#00008B#0000DD#3A2EFE
Nearest CSS named colors
- Navy (
navy): Navy (#000080) is about as light as Dark Blue (CSS) (relative luminance 0.016 vs 0.019) and equally saturated, with the same hue. - Midnight Blue (
midnightblue): Midnight Blue (#191970) is about as light as Dark Blue (CSS) (relative luminance 0.021 vs 0.019) and less saturated, with the same hue. - Medium Blue (
mediumblue): Medium Blue (#0000CD) is lighter than Dark Blue (CSS) (relative luminance 0.044 vs 0.019) and equally saturated, with the same hue. - Indigo (
indigo): Indigo (#4B0082) is lighter than Dark Blue (CSS) (relative luminance 0.031 vs 0.019) and equally saturated, with its hue 35° away.
Gradients with Dark Blue (CSS)
Similar dark blue colors
- 20000 Leagues Under the Sea#191970
- 3AM in Shibuya#225577
- Abyssal#404C57
- Aegean Blue#1B416F
- Alone in the Dark#000066
- Assassin#2D4F83
- Astral#376F89
- Atlantic Navy#13336F
- Atlantis#336172
- Below the Surface#0A2F7C
- Beyond the Sea#005784
- Black Market#222244
- Black Sea Night#052462
- Black Turmeric#2C4364
- Blue Chip#1D5699
- Blue Funk#2D4470
- Blue Hour#0034AB
- Blue Screen of Death#0033BB
Questions
What is the hex code for Dark Blue (CSS)?
#00008B — RGB 0, 0, 139, HSL 240°, 100%, 27%.
Is Dark Blue (CSS) a warm or cool color?
Cool — its hue sits at 240° on the color wheel.