#40302F
Closest named color: Onyx (#343A40). oklch(32.7% 0.024 22.6), rgb(64, 48, 47).
Aa
White text reads best on this color (12.48:1).
About this color
#40302F is a dark close to neutral grey. In OKLCH its lightness is 33%, its chroma 0.024. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.039 away. White text reads best on it, at 12.48:1.
| Hue family | Neutrals |
| Lightness | dark (33%) |
| Chroma | close to neutral grey (0.024) |
| Temperature | neutral |
| Nearest name | Onyx (#343A40) |
| Black text | 1.68:1 |
| White text | 12.48:1 |
Values
| HEX | #40302F |
| RGB | rgb(64, 48, 47) |
| HSL | hsl(4, 15%, 22%) |
| OKLCH | oklch(32.7% 0.024 22.6) |
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 #40302F | 12.48:1 | AAA | Lc -101.8 | Preferred for body text |
| Black text on #40302F | 1.68:1 | Fails | Lc 0.0 | Not readable |
| #40302F text on white | 12.48:1 | AAA | Lc 98.4 | Preferred for body text |
| #40302F text on black | 1.68: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 900.
-
Step 50
50
#F7F5F5
oklch(97.2% 0.002 17.2)
-
Step 100
100
#EDE8E8
oklch(93.5% 0.005 17.3)
-
Step 200
200
#E0D7D6
oklch(88.6% 0.01 25.1)
-
Step 300
300
#CCBCBB
oklch(80.8% 0.018 21.9)
-
Step 400
400
#B29A98
oklch(70.7% 0.029 23.5)
-
Step 500
500
#9E817F
oklch(63% 0.036 22.8)
-
Step 600
600
#896B69
oklch(55.7% 0.039 22.8)
-
Step 700
700
#745957
oklch(49.1% 0.036 23.3)
-
Step 800
800
#5F4947
oklch(42.8% 0.03 24.4)
-
Step 900
900 (this color)
#40302F
oklch(32.7% 0.024 22.6)
-
Step 950
950
#2D2423
oklch(27% 0.014 25.5)
#40302F 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) | #33322F | 0.024 |
| Deuteranopia (no green cones) | #37352F | 0.022 |
| Tritanopia (no blue cones) | #442E30 | 0.010 |
| Achromatopsia (no color) | #343434 | 0.024 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40302F
#40302F
oklch(32.7% 0.024 22.6)
- #26383A
#26383A
oklch(32.6% 0.024 204.7)
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 #40302F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Onyx #343A40 ΔE 0.039
- Gunmetal #293241 ΔE 0.048
- Charcoal Grey #3C4142 ΔE 0.054
- Space Cadet #2B2D42 ΔE 0.054
- Pakistan Green #283618 ΔE 0.066
- Dark Blue Grey #1F3B4D ΔE 0.068
- Jet #212529 ΔE 0.072
- Chocolate Brown #411900 ΔE 0.077
Use #40302F 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.