#402A07
Closest named color: Chocolate Brown (#411900). oklch(30.5% 0.058 74.3), rgb(64, 42, 7).
Aa
White text reads best on this color (13.52:1).
About this color
#402A07 is a dark, muted brown. In OKLCH its lightness is 30%, its chroma 0.058 and its hue 74°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.047 away. White text reads best on it, at 13.52:1.
| Hue family | Browns |
| Lightness | dark (30%) |
| Chroma | muted (0.058) |
| Temperature | warm |
| Nearest name | Chocolate Brown (#411900) |
| Black text | 1.55:1 |
| White text | 13.52:1 |
Values
| HEX | #402A07 |
| RGB | rgb(64, 42, 7) |
| HSL | hsl(37, 80%, 14%) |
| OKLCH | oklch(30.5% 0.058 74.3) |
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 #402A07 | 13.52:1 | AAA | Lc -103.0 | Preferred for body text |
| Black text on #402A07 | 1.55:1 | Fails | Lc 0.0 | Not readable |
| #402A07 text on white | 13.52:1 | AAA | Lc 99.9 | Preferred for body text |
| #402A07 text on black | 1.55: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 950.
-
Step 50
50
#F9F5EF
oklch(97.2% 0.009 78.3)
-
Step 100
100
#F2E8DC
oklch(93.6% 0.019 72.6)
-
Step 200
200
#E9D6BE
oklch(88.5% 0.038 73.7)
-
Step 300
300
#DBBB90
oklch(80.9% 0.068 74.8)
-
Step 400
400
#C9964C
oklch(70.7% 0.11 74.5)
-
Step 500
500
#B87B00
oklch(63% 0.133 74.4)
-
Step 600
600
#9B6700
oklch(55.5% 0.117 74.4)
-
Step 700
700
#835600
oklch(49.1% 0.104 74.1)
-
Step 800
800
#6C4600
oklch(42.7% 0.091 73.9)
-
Step 900
900
#5A3A00
oklch(37.7% 0.08 74.4)
-
Step 950
950 (this color)
#402A07
oklch(30.5% 0.058 74.3)
#402A07 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) | #322B03 | 0.029 |
| Deuteranopia (no green cones) | #373008 | 0.025 |
| Tritanopia (no blue cones) | #472423 | 0.049 |
| Achromatopsia (no color) | #2E2E2E | 0.058 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402A07
#402A07
oklch(30.5% 0.058 74.3)
- #19304B
#19304B
oklch(30.5% 0.057 253.5)
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 #402A07, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Chocolate Brown #411900 ΔE 0.047
- Pakistan Green #283618 ΔE 0.052
- Dark Brown #341C02 ΔE 0.052
- Dark Olive #373E02 ΔE 0.067
- Jet #212529 ΔE 0.080
- Onyx #343A40 ΔE 0.082
- Gunmetal #293241 ΔE 0.088
- Mahogany #4A0100 ΔE 0.089
Use #402A07 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.