#304C40
Closest named color: Dark Slate Gray (#2F4F4F). oklch(39% 0.04 165.7), rgb(48, 76, 64).
Aa
White text reads best on this color (9.40:1).
About this color
#304C40 is a dark, muted green. In OKLCH its lightness is 39%, its chroma 0.040 and its hue 166°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.024 away. White text reads best on it, at 9.40:1.
| Hue family | Greens |
| Lightness | dark (39%) |
| Chroma | muted (0.040) |
| Temperature | in between |
| Nearest name | Dark Slate Gray (#2F4F4F) |
| Black text | 2.23:1 |
| White text | 9.40:1 |
Values
| HEX | #304C40 |
| RGB | rgb(48, 76, 64) |
| HSL | hsl(154, 23%, 24%) |
| OKLCH | oklch(39% 0.04 165.7) |
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 #304C40 | 9.40:1 | AAA | Lc -96.0 | Preferred for body text |
| Black text on #304C40 | 2.23:1 | Fails | Lc 12.3 | Not readable |
| #304C40 text on white | 9.40:1 | AAA | Lc 91.7 | Preferred for body text |
| #304C40 text on black | 2.23:1 | Fails | Lc -10.7 | 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
#F3F6F5
oklch(97.1% 0.003 174.5)
-
Step 100
100
#E5ECE8
oklch(93.7% 0.009 161.3)
-
Step 200
200
#D0DDD6
oklch(88.6% 0.017 162.7)
-
Step 300
300
#B0C7BC
oklch(80.9% 0.029 165.3)
-
Step 400
400
#85AA9A
oklch(70.6% 0.047 166.8)
-
Step 500
500
#659681
oklch(63.2% 0.062 165.9)
-
Step 600
600
#4C806A
oklch(55.7% 0.066 165.3)
-
Step 700
700
#3C6C58
oklch(49.1% 0.062 165.3)
-
Step 800
800
#325848
oklch(42.7% 0.051 165.3)
-
Step 900
900 (this color)
#304C40
oklch(39% 0.04 165.7)
-
Step 950
950
#1A2A23
oklch(26.8% 0.025 165.5)
#304C40 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) | #4B483F | 0.040 |
| Deuteranopia (no green cones) | #464541 | 0.038 |
| Tritanopia (no blue cones) | #294C48 | 0.015 |
| Achromatopsia (no color) | #464646 | 0.040 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #304C40
#304C40
oklch(39% 0.04 165.7)
- #553D4A
#553D4A
oklch(39.1% 0.039 345.4)
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 #304C40, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Gray #2F4F4F ΔE 0.024
- Dark Blue Green #005249 ΔE 0.034
- Dark Teal #014D4E ΔE 0.038
- Charcoal Grey #3C4142 ΔE 0.040
- Charcoal #264653 ΔE 0.045
- Deep Teal #00555A ΔE 0.048
- Evergreen #05472A ΔE 0.056
- Dark Grey Blue #29465B ΔE 0.056
Use #304C40 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.