#402D2E
Closest named color: Onyx (#343A40). oklch(32% 0.028 15.3), rgb(64, 45, 46).
Aa
White text reads best on this color (12.86:1).
About this color
#402D2E is a dark close to neutral grey. In OKLCH its lightness is 32%, its chroma 0.028. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.045 away. White text reads best on it, at 12.86:1.
| Hue family | Neutrals |
| Lightness | dark (32%) |
| Chroma | close to neutral grey (0.028) |
| Temperature | neutral |
| Nearest name | Onyx (#343A40) |
| Black text | 1.63:1 |
| White text | 12.86:1 |
Values
| HEX | #402D2E |
| RGB | rgb(64, 45, 46) |
| HSL | hsl(357, 17%, 21%) |
| OKLCH | oklch(32% 0.028 15.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 #402D2E | 12.86:1 | AAA | Lc -102.3 | Preferred for body text |
| Black text on #402D2E | 1.63:1 | Fails | Lc 0.0 | Not readable |
| #402D2E text on white | 12.86:1 | AAA | Lc 99.0 | Preferred for body text |
| #402D2E text on black | 1.63: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
#F8F4F4
oklch(97% 0.004 17.2)
-
Step 100
100
#F0E7E8
oklch(93.5% 0.01 9.5)
-
Step 200
200
#E5D4D5
oklch(88.4% 0.019 13.4)
-
Step 300
300
#D5B8B9
oklch(80.8% 0.033 15.5)
-
Step 400
400
#C09496
oklch(70.8% 0.053 15.5)
-
Step 500
500
#AF797C
oklch(63.2% 0.068 15.5)
-
Step 600
600
#9A6165
oklch(55.6% 0.074 15.2)
-
Step 700
700
#835054
oklch(49% 0.069 14.8)
-
Step 800
800
#6B4245
oklch(42.8% 0.057 15)
-
Step 900
900
#57383A
oklch(37.8% 0.044 15.2)
-
Step 950
950 (this color)
#402D2E
oklch(32% 0.028 15.3)
#402D2E 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) | #30302E | 0.031 |
| Deuteranopia (no green cones) | #35332E | 0.027 |
| Tritanopia (no blue cones) | #442B2D | 0.009 |
| Achromatopsia (no color) | #323232 | 0.028 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402D2E
#402D2E
oklch(32% 0.028 15.3)
- #213737
#213737
oklch(31.9% 0.028 195.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 #402D2E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Onyx #343A40 ΔE 0.045
- Gunmetal #293241 ΔE 0.049
- Space Cadet #2B2D42 ΔE 0.052
- Charcoal Grey #3C4142 ΔE 0.062
- Jet #212529 ΔE 0.067
- Pakistan Green #283618 ΔE 0.070
- Chocolate Brown #411900 ΔE 0.072
- Dark Blue Grey #1F3B4D ΔE 0.072
Use #402D2E 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.