#405040
Closest named color: Dark Slate Gray (#2F4F4F). oklch(41.2% 0.033 144.9), rgb(64, 80, 64).
Aa
White text reads best on this color (8.60:1).
About this color
#405040 is a dark, muted green. In OKLCH its lightness is 41%, its chroma 0.033 and its hue 145°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.032 away. White text reads best on it, at 8.60:1.
| Hue family | Greens |
| Lightness | dark (41%) |
| Chroma | muted (0.033) |
| Temperature | in between |
| Nearest name | Dark Slate Gray (#2F4F4F) |
| Black text | 2.43:1 |
| White text | 8.60:1 |
Values
| HEX | #405040 |
| RGB | rgb(64, 80, 64) |
| HSL | hsl(120, 11%, 28%) |
| OKLCH | oklch(41.2% 0.033 144.9) |
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 #405040 | 8.60:1 | AAA | Lc -94.1 | Preferred for body text |
| Black text on #405040 | 2.43:1 | Fails | Lc 14.4 | Not readable |
| #405040 text on white | 8.60:1 | AAA | Lc 89.6 | Fine for body text |
| #405040 text on black | 2.43:1 | Fails | Lc -12.7 | 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 800.
-
Step 50
50
#F4F6F4
oklch(97.1% 0.003 145.5)
-
Step 100
100
#E8EBE7
oklch(93.7% 0.006 137.8)
-
Step 200
200
#D5DBD5
oklch(88.5% 0.01 145.5)
-
Step 300
300
#B9C4B9
oklch(80.9% 0.019 145.4)
-
Step 400
400
#95A695
oklch(70.7% 0.031 145.2)
-
Step 500
500
#7B907B
oklch(63.1% 0.039 145.1)
-
Step 600
600
#647A64
oklch(55.5% 0.042 145)
-
Step 700
700
#536753
oklch(49.1% 0.04 144.9)
-
Step 800
800 (this color)
#405040
oklch(41.2% 0.033 144.9)
-
Step 900
900
#394539
oklch(37.6% 0.026 145)
-
Step 950
950
#222922
oklch(27.2% 0.016 145.1)
#405040 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) | #514D3F | 0.027 |
| Deuteranopia (no green cones) | #4E4B41 | 0.026 |
| Tritanopia (no blue cones) | #3F4F4B | 0.019 |
| Achromatopsia (no color) | #4C4C4C | 0.033 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #405040
#405040
oklch(41.2% 0.033 144.9)
- #544555
#544555
oklch(41.2% 0.033 324.2)
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 #405040, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Gray #2F4F4F ΔE 0.032
- Charcoal Grey #3C4142 ΔE 0.052
- Dark Blue Green #005249 ΔE 0.052
- Pine #2B5D34 ΔE 0.057
- Deep Teal #00555A ΔE 0.059
- Dark Teal #014D4E ΔE 0.060
- Dark Green Blue #1F6357 ΔE 0.062
- Charcoal #264653 ΔE 0.063
Use #405040 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.