#402012
Closest named color: Chocolate Brown (#411900). oklch(28.4% 0.055 43.7), rgb(64, 32, 18).
Aa
White text reads best on this color (14.65:1).
About this color
#402012 is a dark, muted brown. In OKLCH its lightness is 28%, its chroma 0.055 and its hue 44°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.023 away. White text reads best on it, at 14.65:1.
| Hue family | Browns |
| Lightness | dark (28%) |
| Chroma | muted (0.055) |
| Temperature | warm |
| Nearest name | Chocolate Brown (#411900) |
| Black text | 1.43:1 |
| White text | 14.65:1 |
Values
| HEX | #402012 |
| RGB | rgb(64, 32, 18) |
| HSL | hsl(18, 56%, 16%) |
| OKLCH | oklch(28.4% 0.055 43.7) |
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 #402012 | 14.65:1 | AAA | Lc -104.2 | Preferred for body text |
| Black text on #402012 | 1.43:1 | Fails | Lc 0.0 | Not readable |
| #402012 text on white | 14.65:1 | AAA | Lc 101.3 | Preferred for body text |
| #402012 text on black | 1.43: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
#FBF4F1
oklch(97.2% 0.009 44.9)
-
Step 100
100
#F5E6E0
oklch(93.5% 0.018 43.2)
-
Step 200
200
#EFD2C6
oklch(88.5% 0.037 43.8)
-
Step 300
300
#E6B49F
oklch(81% 0.065 43.9)
-
Step 400
400
#D78B6A
oklch(70.7% 0.104 44.1)
-
Step 500
500
#CA6C41
oklch(63.1% 0.132 44.2)
-
Step 600
600
#B6511F
oklch(55.6% 0.145 43.7)
-
Step 700
700
#9C4110
oklch(49.1% 0.134 43.9)
-
Step 800
800
#7F3612
oklch(42.7% 0.111 43.5)
-
Step 900
900
#663017
oklch(37.7% 0.086 43.9)
-
Step 950
950 (this color)
#402012
oklch(28.4% 0.055 43.7)
#402012 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) | #292411 | 0.049 |
| Deuteranopia (no green cones) | #302B12 | 0.046 |
| Tritanopia (no blue cones) | #471A1D | 0.031 |
| Achromatopsia (no color) | #282828 | 0.055 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402012
#402012
oklch(28.4% 0.055 43.7)
- #002F3D
#002F3D
oklch(28.3% 0.053 223.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 #402012, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Chocolate Brown #411900 ΔE 0.023
- Dark Brown #341C02 ΔE 0.036
- Mahogany #4A0100 ΔE 0.059
- Deep Brown #410200 ΔE 0.063
- Jet #212529 ΔE 0.067
- Dark Maroon #3C0008 ΔE 0.074
- Pakistan Green #283618 ΔE 0.078
- Dark #1B2431 ΔE 0.084
Use #402012 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.