#334740
Closest named color: Charcoal Grey (#3C4142). oklch(37.9% 0.028 171.2), rgb(51, 71, 64).
Aa
White text reads best on this color (9.92:1).
About this color
#334740 is a dark close to neutral grey. In OKLCH its lightness is 38%, its chroma 0.028. It has too little chroma to lean warm or cool. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.024 away. White text reads best on it, at 9.92:1.
| Hue family | Neutrals |
| Lightness | dark (38%) |
| Chroma | close to neutral grey (0.028) |
| Temperature | neutral |
| Nearest name | Charcoal Grey (#3C4142) |
| Black text | 2.11:1 |
| White text | 9.92:1 |
Values
| HEX | #334740 |
| RGB | rgb(51, 71, 64) |
| HSL | hsl(159, 16%, 24%) |
| OKLCH | oklch(37.9% 0.028 171.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 #334740 | 9.92:1 | AAA | Lc -97.2 | Preferred for body text |
| Black text on #334740 | 2.11:1 | Fails | Lc 10.9 | Not readable |
| #334740 text on white | 9.92:1 | AAA | Lc 93.0 | Preferred for body text |
| #334740 text on black | 2.11:1 | Fails | Lc -9.5 | 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
#F4F6F5
oklch(97.1% 0.002 165.1)
-
Step 100
100
#E6EBE9
oklch(93.6% 0.006 170.4)
-
Step 200
200
#D2DCD8
oklch(88.6% 0.012 170.2)
-
Step 300
300
#B4C5BF
oklch(80.9% 0.02 172.6)
-
Step 400
400
#8CA89E
oklch(70.7% 0.034 171.7)
-
Step 500
500
#709286
oklch(63.1% 0.042 171.3)
-
Step 600
600
#577C70
oklch(55.5% 0.046 172.4)
-
Step 700
700
#47695D
oklch(49.1% 0.044 170.4)
-
Step 800
800
#3B564C
oklch(42.8% 0.037 169.6)
-
Step 900
900 (this color)
#334740
oklch(37.9% 0.028 171.2)
-
Step 950
950
#1E2925
oklch(26.9% 0.017 170.8)
#334740 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) | #464440 | 0.030 |
| Deuteranopia (no green cones) | #424240 | 0.027 |
| Tritanopia (no blue cones) | #2E4745 | 0.010 |
| Achromatopsia (no color) | #434343 | 0.028 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #334740
#334740
oklch(37.9% 0.028 171.2)
- #4E3C44
#4E3C44
oklch(37.9% 0.028 350.1)
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 #334740, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Charcoal Grey #3C4142 ΔE 0.024
- Dark Slate Gray #2F4F4F ΔE 0.030
- Charcoal #264653 ΔE 0.036
- Dark Teal #014D4E ΔE 0.041
- Onyx #343A40 ΔE 0.044
- Dark Blue Green #005249 ΔE 0.046
- Dark Grey Blue #29465B ΔE 0.048
- Deep Teal #00555A ΔE 0.057
Use #334740 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.