#505142
Closest named color: Dark Slate Gray (#2F4F4F). oklch(42.9% 0.024 110.5), rgb(80, 81, 66).
Aa
White text reads best on this color (8.08:1).
About this color
#505142 is a dark close to neutral grey. In OKLCH its lightness is 43%, its chroma 0.024. It has too little chroma to lean warm or cool. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.050 away. White text reads best on it, at 8.08:1.
| Hue family | Neutrals |
| Lightness | dark (43%) |
| Chroma | close to neutral grey (0.024) |
| Temperature | neutral |
| Nearest name | Dark Slate Gray (#2F4F4F) |
| Black text | 2.59:1 |
| White text | 8.08:1 |
Values
| HEX | #505142 |
| RGB | rgb(80, 81, 66) |
| HSL | hsl(64, 10%, 29%) |
| OKLCH | oklch(42.9% 0.024 110.5) |
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 #505142 | 8.08:1 | AAA | Lc -92.7 | Preferred for body text |
| Black text on #505142 | 2.59:1 | Fails | Lc 16.0 | Dividers and decoration only |
| #505142 text on white | 8.08:1 | AAA | Lc 88.0 | Fine for body text |
| #505142 text on black | 2.59:1 | Fails | Lc -14.1 | 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 800.
-
Step 50
50
#F5F5F4
oklch(97% 0.001 106.4)
-
Step 100
100
#EAEAE7
oklch(93.6% 0.004 106.5)
-
Step 200
200
#D9DAD4
oklch(88.6% 0.008 114.2)
-
Step 300
300
#C1C2B7
oklch(81% 0.015 110.9)
-
Step 400
400
#A1A292
oklch(70.7% 0.023 109.9)
-
Step 500
500
#8A8B78
oklch(63% 0.028 109.6)
-
Step 600
600
#747560
oklch(55.5% 0.031 109.6)
-
Step 700
700
#616250
oklch(49% 0.028 110)
-
Step 800
800 (this color)
#505142
oklch(42.9% 0.024 110.5)
-
Step 900
900
#424337
oklch(37.8% 0.02 111.2)
-
Step 950
950
#272720
oklch(27% 0.013 107.2)
#505142 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) | #545041 | 0.007 |
| Deuteranopia (no green cones) | #545043 | 0.008 |
| Tritanopia (no blue cones) | #524F4D | 0.021 |
| Achromatopsia (no color) | #505050 | 0.024 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #505142
#505142
oklch(42.9% 0.024 110.5)
- #4F4E5C
#4F4E5C
oklch(43% 0.023 288.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 #505142, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Gray #2F4F4F ΔE 0.050
- Mud Brown #60460F ΔE 0.060
- Charcoal Grey #3C4142 ΔE 0.064
- Green Brown #544E03 ΔE 0.064
- Pine #2B5D34 ΔE 0.069
- Dark Green Blue #1F6357 ΔE 0.070
- Olive Brown #645403 ΔE 0.071
- Purple Brown #673A3F ΔE 0.075
Use #505142 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.