#004158 color
The hex color #004158 is a very dark, vivid azure.
In the RGB color model it is made of 0% red, 25.5% green and 34.5% blue (0, 65, 88).
Its hue angle is 196°, with 100% saturation and 17% lightness. For print, the CMYK equivalent is 100% cyan, 26% magenta, 0% yellow and 65% black.
The closest named color is Maniac Mansion (#004058), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.07:1).
#004158 color codes
| HEX | #004158 | |
|---|---|---|
| RGB | rgb(0, 65, 88) | |
| RGB percent | rgb(0%, 25.5%, 34.5%) | |
| HSL | hsl(196, 100%, 17%) | |
| HSV / HSB | hsv(196, 100%, 35%) | |
| CMYK | cmyk(100%, 26%, 0%, 65%) | |
| CIE LAB | lab(25.21, -8.94, -18.89) | |
| CIE LCH | lch(25.21, 20.9, 244.68) | |
| CIE XYZ | xyz(3.651, 4.485, 9.904) | |
| Decimal | 16728 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #004158, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #004158 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.9:1 | Fail | Fail | Fail |
| Sample text | 11.07:1 | Pass | Pass | Pass |
| #004158 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.07:1 | Pass | Pass | Pass |
| Sample text | 1.9:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #004158 looks to people with the most common types of color vision deficiency.
#354059Protanopia
no red cones#2a3858Deuteranopia
no green cones#004749Tritanopia
no blue cones#3c3c3cAchromatopsia
no color vision
CSS examples
.background { background-color: #004158; }
.text { color: #004158; }
.border { border: 2px solid #004158; }
.transparent { background-color: rgb(0 65 88 / 50%); }
.gradient { background: linear-gradient(to right, #004158, #001558); }
Similar colors
#004058Maniac Mansion#1a4157Capital Blue#154250Cold and Dark#253f4eDepths of the Nile#003344Nordic Noir#254855Mallard#29465bOne Year of Rain#204d68Seafarer
Closest common color name: Charcoal.
Questions
- What color is #004158?
- #004158 is a very dark, vivid azure, closest to the named color Maniac Mansion. It belongs to the blue family of colors.
- What is the RGB value of #004158?
- The RGB value is 0, 65, 88: 0 red, 65 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #004158?
- The complementary color is #581700, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #004158?
- White text. Black text has a contrast ratio of 1.9:1 and white text 11.07:1. WCAG asks for at least 4.5:1 for normal text.