#40402D
Closest named color: Charcoal Grey (#3C4142). oklch(36.6% 0.031 107.8), rgb(64, 64, 45).
Aa
White text reads best on this color (10.55:1).
About this color
#40402D is a dark, muted brown. In OKLCH its lightness is 37%, its chroma 0.031 and its hue 108°. Its hue sits on the warm side of the wheel. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.034 away. White text reads best on it, at 10.55:1.
| Hue family | Browns |
| Lightness | dark (37%) |
| Chroma | muted (0.031) |
| Temperature | warm |
| Nearest name | Charcoal Grey (#3C4142) |
| Black text | 1.98:1 |
| White text | 10.55:1 |
Values
| HEX | #40402D |
| RGB | rgb(64, 64, 45) |
| HSL | hsl(60, 17%, 21%) |
| OKLCH | oklch(36.6% 0.031 107.8) |
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 #40402D | 10.55:1 | AAA | Lc -98.5 | Preferred for body text |
| Black text on #40402D | 1.98:1 | Fails | Lc 9.4 | Not readable |
| #40402D text on white | 10.55:1 | AAA | Lc 94.5 | Preferred for body text |
| #40402D text on black | 1.98:1 | Fails | Lc -8.1 | 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
#F5F6F3
oklch(97.2% 0.004 121.6)
-
Step 100
100
#EAEAE5
oklch(93.6% 0.007 106.5)
-
Step 200
200
#DADAD0
oklch(88.6% 0.013 106.7)
-
Step 300
300
#C2C2B1
oklch(80.9% 0.023 106.9)
-
Step 400
400
#A2A388
oklch(70.7% 0.038 109.1)
-
Step 500
500
#8C8C6B
oklch(63.1% 0.047 107.7)
-
Step 600
600
#767652
oklch(55.6% 0.052 108)
-
Step 700
700
#636343
oklch(49.1% 0.048 108)
-
Step 800
800
#515137
oklch(42.8% 0.04 108)
-
Step 900
900 (this color)
#40402D
oklch(36.6% 0.031 107.8)
-
Step 950
950
#27271C
oklch(26.9% 0.019 107.6)
#40402D 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) | #433E2C | 0.007 |
| Deuteranopia (no green cones) | #443F2E | 0.008 |
| Tritanopia (no blue cones) | #433E3B | 0.027 |
| Achromatopsia (no color) | #3F3F3F | 0.031 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40402D
#40402D
oklch(36.6% 0.031 107.8)
- #3D3C4E
#3D3C4E
oklch(36.5% 0.031 287.3)
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 #40402D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Charcoal Grey #3C4142 ΔE 0.034
- Onyx #343A40 ΔE 0.047
- Dark Olive #373E02 ΔE 0.052
- Pakistan Green #283618 ΔE 0.060
- Dark Slate Gray #2F4F4F ΔE 0.061
- Charcoal #264653 ΔE 0.065
- Evergreen #05472A ΔE 0.066
- Mud Brown #60460F ΔE 0.069
Use #40402D 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.