#40271A
Closest named color: Chocolate Brown (#411900). oklch(30.1% 0.044 48), rgb(64, 39, 26).
Aa
White text reads best on this color (13.78:1).
About this color
#40271A is a dark, muted brown. In OKLCH its lightness is 30%, its chroma 0.044 and its hue 48°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.042 away. White text reads best on it, at 13.78:1.
| Hue family | Browns |
| Lightness | dark (30%) |
| Chroma | muted (0.044) |
| Temperature | warm |
| Nearest name | Chocolate Brown (#411900) |
| Black text | 1.52:1 |
| White text | 13.78:1 |
Values
| HEX | #40271A |
| RGB | rgb(64, 39, 26) |
| HSL | hsl(21, 42%, 18%) |
| OKLCH | oklch(30.1% 0.044 48) |
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 #40271A | 13.78:1 | AAA | Lc -103.3 | Preferred for body text |
| Black text on #40271A | 1.52:1 | Fails | Lc 0.0 | Not readable |
| #40271A text on white | 13.78:1 | AAA | Lc 100.3 | Preferred for body text |
| #40271A text on black | 1.52: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
#FAF4F1
oklch(97.1% 0.008 48.7)
-
Step 100
100
#F3E7E1
oklch(93.6% 0.015 48.6)
-
Step 200
200
#EAD4C9
oklch(88.5% 0.029 48.4)
-
Step 300
300
#DEB7A4
oklch(80.9% 0.052 47.4)
-
Step 400
400
#CC9173
oklch(70.7% 0.083 47.9)
-
Step 500
500
#BD754E
oklch(63.1% 0.106 48.5)
-
Step 600
600
#A95C31
oklch(55.7% 0.116 48)
-
Step 700
700
#914B23
oklch(49.1% 0.108 48)
-
Step 800
800
#753E1F
oklch(42.6% 0.088 48.2)
-
Step 900
900
#5F351F
oklch(37.7% 0.069 47.4)
-
Step 950
950 (this color)
#40271A
oklch(30.1% 0.044 48)
#40271A 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) | #2E2A19 | 0.037 |
| Deuteranopia (no green cones) | #342F1A | 0.034 |
| Tritanopia (no blue cones) | #462224 | 0.028 |
| Achromatopsia (no color) | #2D2D2D | 0.044 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40271A
#40271A
oklch(30.1% 0.044 48)
- #13323F
#13323F
oklch(30% 0.043 228.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 #40271A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Chocolate Brown #411900 ΔE 0.042
- Dark Brown #341C02 ΔE 0.050
- Pakistan Green #283618 ΔE 0.065
- Jet #212529 ΔE 0.065
- Onyx #343A40 ΔE 0.072
- Gunmetal #293241 ΔE 0.072
- Space Cadet #2B2D42 ΔE 0.074
- Mahogany #4A0100 ΔE 0.077
Use #40271A 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.