#304040
Closest named color: Charcoal Grey (#3C4142). oklch(35.8% 0.021 196.3), rgb(48, 64, 64).
Aa
White text reads best on this color (10.86:1).
About this color
#304040 is a dark close to neutral grey. In OKLCH its lightness is 36%, its chroma 0.021. It has too little chroma to lean warm or cool. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.019 away. White text reads best on it, at 10.86:1.
| Hue family | Neutrals |
| Lightness | dark (36%) |
| Chroma | close to neutral grey (0.021) |
| Temperature | neutral |
| Nearest name | Charcoal Grey (#3C4142) |
| Black text | 1.93:1 |
| White text | 10.86:1 |
Values
| HEX | #304040 |
| RGB | rgb(48, 64, 64) |
| HSL | hsl(180, 14%, 22%) |
| OKLCH | oklch(35.8% 0.021 196.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 #304040 | 10.86:1 | AAA | Lc -99.0 | Preferred for body text |
| Black text on #304040 | 1.93:1 | Fails | Lc 8.7 | Not readable |
| #304040 text on white | 10.86:1 | AAA | Lc 95.2 | Preferred for body text |
| #304040 text on black | 1.93:1 | Fails | Lc -7.5 | 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
#E7EBEB
oklch(93.7% 0.004 197.1)
-
Step 200
200
#D3DBDB
oklch(88.5% 0.009 197)
-
Step 300
300
#B6C4C4
oklch(81% 0.015 196.9)
-
Step 400
400
#90A6A6
oklch(70.8% 0.025 196.6)
-
Step 500
500
#749090
oklch(63.2% 0.032 196.4)
-
Step 600
600
#5C7A7A
oklch(55.6% 0.034 196.2)
-
Step 700
700
#4B6767
oklch(49.2% 0.033 196.1)
-
Step 800
800
#3E5454
oklch(42.8% 0.027 196.2)
-
Step 900
900 (this color)
#304040
oklch(35.8% 0.021 196.3)
-
Step 950
950
#1F2928
oklch(27.1% 0.014 188.9)
#304040 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) | #3E3E40 | 0.022 |
| Deuteranopia (no green cones) | #3B3C40 | 0.020 |
| Tritanopia (no blue cones) | #2B4140 | 0.007 |
| Achromatopsia (no color) | #3D3D3D | 0.021 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #304040
#304040
oklch(35.8% 0.021 196.3)
- #473839
#473839
oklch(35.7% 0.021 13.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 #304040, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Charcoal Grey #3C4142 ΔE 0.019
- Onyx #343A40 ΔE 0.020
- Charcoal #264653 ΔE 0.033
- Dark Blue Grey #1F3B4D ΔE 0.039
- Dark Grey Blue #29465B ΔE 0.045
- Dark Slate Gray #2F4F4F ΔE 0.049
- Dark Teal #014D4E ΔE 0.050
- Gunmetal #293241 ΔE 0.051
Use #304040 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.