#40340F
Closest named color: Dark Olive (#373E02). oklch(33% 0.056 90.9), rgb(64, 52, 15).
Aa
White text reads best on this color (12.23:1).
About this color
#40340F is a dark, muted brown. In OKLCH its lightness is 33%, its chroma 0.056 and its hue 91°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Olive (#373E02), ΔE 0.040 away. White text reads best on it, at 12.23:1.
| Hue family | Browns |
| Lightness | dark (33%) |
| Chroma | muted (0.056) |
| Temperature | warm |
| Nearest name | Dark Olive (#373E02) |
| Black text | 1.71:1 |
| White text | 12.23:1 |
Values
| HEX | #40340F |
| RGB | rgb(64, 52, 15) |
| HSL | hsl(45, 62%, 15%) |
| OKLCH | oklch(33% 0.056 90.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 #40340F | 12.23:1 | AAA | Lc -101.3 | Preferred for body text |
| Black text on #40340F | 1.71:1 | Fails | Lc 0.0 | Not readable |
| #40340F text on white | 12.23:1 | AAA | Lc 97.8 | Preferred for body text |
| #40340F text on black | 1.71: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
#F7F5F1
oklch(97.1% 0.006 84.6)
-
Step 100
100
#EDEAE1
oklch(93.7% 0.012 91.5)
-
Step 200
200
#DFD9C8
oklch(88.5% 0.024 90.8)
-
Step 300
300
#CBC0A3
oklch(80.9% 0.041 89.7)
-
Step 400
400
#B09F70
oklch(70.6% 0.067 90.5)
-
Step 500
500
#9D884A
oklch(63.2% 0.085 91.1)
-
Step 600
600
#88712B
oklch(55.7% 0.093 90.7)
-
Step 700
700
#735E1D
oklch(49% 0.086 90.6)
-
Step 800
800
#5E4D1B
oklch(42.7% 0.071 90.1)
-
Step 900
900 (this color)
#40340F
oklch(33% 0.056 90.9)
-
Step 950
950
#2D2611
oklch(27.1% 0.036 91.5)
#40340F 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) | #3A330A | 0.013 |
| Deuteranopia (no green cones) | #3D3711 | 0.010 |
| Tritanopia (no blue cones) | #462F2C | 0.051 |
| Achromatopsia (no color) | #353535 | 0.056 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40340F
#40340F
oklch(33% 0.056 90.9)
- #2B3352
#2B3352
oklch(32.9% 0.056 272)
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 #40340F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Olive #373E02 ΔE 0.040
- Pakistan Green #283618 ΔE 0.040
- Onyx #343A40 ΔE 0.070
- Charcoal Grey #3C4142 ΔE 0.072
- Chocolate Brown #411900 ΔE 0.077
- Hunter Green #0B4008 ΔE 0.079
- Forrest Green #154406 ΔE 0.079
- Evergreen #05472A ΔE 0.080
Use #40340F 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.