#402D2C
Closest named color: Onyx (#343A40). oklch(31.9% 0.028 22.2), rgb(64, 45, 44).
Aa
White text reads best on this color (12.88:1).
About this color
#402D2C 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.047 away. White text reads best on it, at 12.88:1.
| Hue family | Neutrals |
| Lightness | dark (32%) |
| Chroma | close to neutral grey (0.028) |
| Temperature | neutral |
| Nearest name | Onyx (#343A40) |
| Black text | 1.62:1 |
| White text | 12.88:1 |
Values
| HEX | #402D2C |
| RGB | rgb(64, 45, 44) |
| HSL | hsl(3, 19%, 21%) |
| OKLCH | oklch(31.9% 0.028 22.2) |
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 #402D2C | 12.88:1 | AAA | Lc -102.3 | Preferred for body text |
| Black text on #402D2C | 1.62:1 | Fails | Lc 0.0 | Not readable |
| #402D2C text on white | 12.88:1 | AAA | Lc 99.0 | Preferred for body text |
| #402D2C text on black | 1.62: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
#F0E7E7
oklch(93.5% 0.01 17.3)
-
Step 200
200
#E5D5D3
oklch(88.5% 0.018 26.1)
-
Step 300
300
#D6B9B7
oklch(81% 0.034 22.6)
-
Step 400
400
#C09491
oklch(70.7% 0.054 23)
-
Step 500
500
#AF7977
oklch(63% 0.068 21.5)
-
Step 600
600
#9A625F
oklch(55.6% 0.073 23)
-
Step 700
700
#84514F
oklch(49.2% 0.069 22.3)
-
Step 800
800
#6B4241
oklch(42.7% 0.057 21.3)
-
Step 900
900
#573837
oklch(37.7% 0.045 21.4)
-
Step 950
950 (this color)
#402D2C
oklch(31.9% 0.028 22.2)
#402D2C 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) | #31302C | 0.029 |
| Deuteranopia (no green cones) | #35332C | 0.027 |
| Tritanopia (no blue cones) | #442B2D | 0.010 |
| Achromatopsia (no color) | #323232 | 0.028 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402D2C
#402D2C
oklch(31.9% 0.028 22.2)
- #213739
#213739
oklch(31.9% 0.028 203.1)
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 #402D2C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Onyx #343A40 ΔE 0.047
- Gunmetal #293241 ΔE 0.051
- Space Cadet #2B2D42 ΔE 0.054
- Charcoal Grey #3C4142 ΔE 0.063
- Jet #212529 ΔE 0.067
- Pakistan Green #283618 ΔE 0.067
- Chocolate Brown #411900 ΔE 0.069
- Dark Blue Grey #1F3B4D ΔE 0.074
Use #402D2C 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.