#40171C
Closest named color: Chocolate Brown (#411900). oklch(26.9% 0.064 15), rgb(64, 23, 28).
Aa
White text reads best on this color (15.47:1).
About this color
#40171C is a dark, muted red. In OKLCH its lightness is 27%, its chroma 0.064 and its hue 15°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.041 away. White text reads best on it, at 15.47:1.
| Hue family | Reds |
| Lightness | dark (27%) |
| Chroma | muted (0.064) |
| Temperature | warm |
| Nearest name | Chocolate Brown (#411900) |
| Black text | 1.35:1 |
| White text | 15.47:1 |
Values
| HEX | #40171C |
| RGB | rgb(64, 23, 28) |
| HSL | hsl(353, 47%, 17%) |
| OKLCH | oklch(26.9% 0.064 15) |
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 #40171C | 15.47:1 | AAA | Lc -104.8 | Preferred for body text |
| Black text on #40171C | 1.35:1 | Fails | Lc 0.0 | Not readable |
| #40171C text on white | 15.47:1 | AAA | Lc 102.1 | Preferred for body text |
| #40171C text on black | 1.35: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
#FCF3F3
oklch(97.1% 0.01 17.3)
-
Step 100
100
#F8E4E5
oklch(93.5% 0.022 14.1)
-
Step 200
200
#F4CED0
oklch(88.4% 0.043 14.4)
-
Step 300
300
#EDADB1
oklch(80.8% 0.075 14.7)
-
Step 400
400
#E27F88
oklch(70.7% 0.122 14.9)
-
Step 500
500
#D65B6B
oklch(63.1% 0.155 14.8)
-
Step 600
600
#C13C53
oklch(55.5% 0.169 14.6)
-
Step 700
700
#A72D43
oklch(49.2% 0.157 15)
-
Step 800
800
#872737
oklch(42.6% 0.13 15)
-
Step 900
900
#6D2630
oklch(37.7% 0.101 14.9)
-
Step 950
950 (this color)
#40171C
oklch(26.9% 0.064 15)
#40171C 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) | #201F1C | 0.070 |
| Deuteranopia (no green cones) | #2A271B | 0.064 |
| Tritanopia (no blue cones) | #461119 | 0.017 |
| Achromatopsia (no color) | #242424 | 0.065 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40171C
#40171C
oklch(26.9% 0.064 15)
- #002D2D
#002D2D
oklch(26.9% 0.046 194.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 #40171C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Chocolate Brown #411900 ΔE 0.041
- Mahogany #4A0100 ΔE 0.047
- Deep Brown #410200 ΔE 0.048
- Dark Maroon #3C0008 ΔE 0.052
- Dark Brown #341C02 ΔE 0.053
- Dark Plum #3F012C ΔE 0.062
- Aubergine #3D0734 ΔE 0.065
- Eggplant #380835 ΔE 0.070
Use #40171C 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.