#40343D
Closest named color: Onyx (#343A40). oklch(34.1% 0.023 335), rgb(64, 52, 61).
Aa
White text reads best on this color (11.82:1).
About this color
#40343D is a dark close to neutral grey. In OKLCH its lightness is 34%, its chroma 0.023. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.026 away. White text reads best on it, at 11.82:1.
| Hue family | Neutrals |
| Lightness | dark (34%) |
| Chroma | close to neutral grey (0.023) |
| Temperature | neutral |
| Nearest name | Onyx (#343A40) |
| Black text | 1.77:1 |
| White text | 11.82:1 |
Values
| HEX | #40343D |
| RGB | rgb(64, 52, 61) |
| HSL | hsl(315, 10%, 23%) |
| OKLCH | oklch(34.1% 0.023 335) |
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 #40343D | 11.82:1 | AAA | Lc -100.7 | Preferred for body text |
| Black text on #40343D | 1.77:1 | Fails | Lc 0.0 | Not readable |
| #40343D text on white | 11.82:1 | AAA | Lc 97.1 | Preferred for body text |
| #40343D text on black | 1.77: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
#F6F5F6
oklch(97.1% 0.002 325.6)
-
Step 100
100
#ECE9EB
oklch(93.7% 0.004 337.4)
-
Step 200
200
#DDD7DB
oklch(88.5% 0.008 337.5)
-
Step 300
300
#C8BDC5
oklch(81% 0.016 335.1)
-
Step 400
400
#AC9BA7
oklch(70.8% 0.026 336.3)
-
Step 500
500
#978292
oklch(63.1% 0.034 334.3)
-
Step 600
600
#826B7C
oklch(55.6% 0.038 335.4)
-
Step 700
700
#6E5969
oklch(49% 0.036 334.6)
-
Step 800
800
#594955
oklch(42.6% 0.029 335)
-
Step 900
900 (this color)
#40343D
oklch(34.1% 0.023 335)
-
Step 950
950
#2B2429
oklch(27% 0.014 336.2)
#40343D 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) | #34363D | 0.022 |
| Deuteranopia (no green cones) | #37383D | 0.020 |
| Tritanopia (no blue cones) | #413437 | 0.011 |
| Achromatopsia (no color) | #373737 | 0.023 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40343D
#40343D
oklch(34.1% 0.023 335)
- #2F3C33
#2F3C33
oklch(34.1% 0.023 154.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 #40343D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Onyx #343A40 ΔE 0.026
- Charcoal Grey #3C4142 ΔE 0.040
- Gunmetal #293241 ΔE 0.041
- Space Cadet #2B2D42 ΔE 0.048
- Dark Blue Grey #1F3B4D ΔE 0.054
- Charcoal #264653 ΔE 0.065
- Prussian Blue #1D3557 ΔE 0.068
- Dark Grey Blue #29465B ΔE 0.069
Use #40343D 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.