#303E42
Closest named color: Onyx (#343A40). oklch(35.3% 0.02 217), rgb(48, 62, 66).
Aa
White text reads best on this color (11.09:1).
About this color
#303E42 is a dark close to neutral grey. In OKLCH its lightness is 35%, its chroma 0.020. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.013 away. White text reads best on it, at 11.09:1.
| Hue family | Neutrals |
| Lightness | dark (35%) |
| Chroma | close to neutral grey (0.020) |
| Temperature | neutral |
| Nearest name | Onyx (#343A40) |
| Black text | 1.89:1 |
| White text | 11.09:1 |
Values
| HEX | #303E42 |
| RGB | rgb(48, 62, 66) |
| HSL | hsl(193, 16%, 22%) |
| OKLCH | oklch(35.3% 0.02 217) |
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 #303E42 | 11.09:1 | AAA | Lc -99.5 | Preferred for body text |
| Black text on #303E42 | 1.89:1 | Fails | Lc 8.2 | Not readable |
| #303E42 text on white | 11.09:1 | AAA | Lc 95.7 | Preferred for body text |
| #303E42 text on black | 1.89: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
#F4F6F6
oklch(97.2% 0.002 197.1)
-
Step 100
100
#E7EAEC
oklch(93.5% 0.004 236.5)
-
Step 200
200
#D3DADD
oklch(88.4% 0.009 225.1)
-
Step 300
300
#B7C3C7
oklch(80.9% 0.014 219.6)
-
Step 400
400
#91A5AA
oklch(70.8% 0.024 214.5)
-
Step 500
500
#768E95
oklch(63% 0.029 217.3)
-
Step 600
600
#5E7880
oklch(55.5% 0.033 218.5)
-
Step 700
700
#4D656C
oklch(49% 0.031 217.5)
-
Step 800
800
#405358
oklch(42.8% 0.025 215.6)
-
Step 900
900 (this color)
#303E42
oklch(35.3% 0.02 217)
-
Step 950
950
#20282A
oklch(27% 0.012 214.5)
#303E42 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) | #3B3D42 | 0.017 |
| Deuteranopia (no green cones) | #383B42 | 0.015 |
| Tritanopia (no blue cones) | #2B403F | 0.012 |
| Achromatopsia (no color) | #3C3C3C | 0.020 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #303E42
#303E42
oklch(35.3% 0.02 217)
- #453834
#453834
oklch(35.3% 0.02 37.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 #303E42, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Onyx #343A40 ΔE 0.013
- Charcoal Grey #3C4142 ΔE 0.022
- Dark Blue Grey #1F3B4D ΔE 0.033
- Charcoal #264653 ΔE 0.033
- Gunmetal #293241 ΔE 0.043
- Dark Grey Blue #29465B ΔE 0.043
- Midnight Green #073B4C ΔE 0.046
- Dark Slate Gray #2F4F4F ΔE 0.054
Use #303E42 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.