#004058
Closest named color: Midnight Green (#073B4C). oklch(34.9% 0.07 231.2), rgb(0, 64, 88).
Aa
White text reads best on this color (11.20:1).
About this color
#004058 is a dark, moderately saturated blue. In OKLCH its lightness is 35%, its chroma 0.070 and its hue 231°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Green (#073B4C), ΔE 0.023 away. White text reads best on it, at 11.20:1.
| Hue family | Blues |
| Lightness | dark (35%) |
| Chroma | moderately saturated (0.070) |
| Temperature | cool |
| Nearest name | Midnight Green (#073B4C) |
| Black text | 1.87:1 |
| White text | 11.20:1 |
Values
| HEX | #004058 |
| RGB | rgb(0, 64, 88) |
| HSL | hsl(196, 100%, 17%) |
| OKLCH | oklch(34.9% 0.07 231.2) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #004058 | 11.20:1 | AAA | Lc -99.2 | Preferred for body text |
| Black text on #004058 | 1.87:1 | Fails | Lc 8.5 | Not readable |
| #004058 text on white | 11.20:1 | AAA | Lc 95.4 | Preferred for body text |
| #004058 text on black | 1.87:1 | Fails | Lc 0.0 | Not readable |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.
-
Step 50
50
#F1F6F9
oklch(97% 0.007 233.6)
-
Step 100
100
#E0ECF2
oklch(93.6% 0.015 229)
-
Step 200
200
#C7DDE9
oklch(88.5% 0.029 231.5)
-
Step 300
300
#9FC7DD
oklch(80.8% 0.053 232.3)
-
Step 400
400
#67AACC
oklch(70.6% 0.084 231.8)
-
Step 500
500
#3495BF
oklch(63.2% 0.108 230.9)
-
Step 600
600
#007EA9
oklch(55.6% 0.112 231.2)
-
Step 700
700
#006A8F
oklch(49.2% 0.1 231.3)
-
Step 800
800
#005775
oklch(42.8% 0.086 230.3)
-
Step 900
900 (this color)
#004058
oklch(34.9% 0.07 231.2)
-
Step 950
950
#0B2A38
oklch(27% 0.044 231.3)
#004058 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #343F59 | 0.047 |
| Deuteranopia (no green cones) | #293858 | 0.039 |
| Tritanopia (no blue cones) | #004748 | 0.042 |
| Achromatopsia (no color) | #3B3B3B | 0.071 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #004058
#004058
oklch(34.9% 0.07 231.2)
- #572E14
#572E14
oklch(34.9% 0.071 50.8)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #004058, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Green #073B4C ΔE 0.023
- Dark Blue Grey #1F3B4D ΔE 0.027
- Prussian Blue #1D3557 ΔE 0.038
- Charcoal #264653 ΔE 0.038
- Dark Grey Blue #29465B ΔE 0.040
- Marine Blue #01386A ΔE 0.045
- Dark Teal #014D4E ΔE 0.052
- Gunmetal #293241 ΔE 0.057
Use #004058 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.