#313228
Closest named color: Pakistan Green (#283618). oklch(31.3% 0.017 112), rgb(49, 50, 40).
Aa
White text reads best on this color (12.98:1).
About this color
#313228 is a dark close to neutral grey. In OKLCH its lightness is 31%, its chroma 0.017. It has too little chroma to lean warm or cool. The nearest named color is Pakistan Green (#283618), ΔE 0.037 away. White text reads best on it, at 12.98:1.
| Hue family | Neutrals |
| Lightness | dark (31%) |
| Chroma | close to neutral grey (0.017) |
| Temperature | neutral |
| Nearest name | Pakistan Green (#283618) |
| Black text | 1.61:1 |
| White text | 12.98:1 |
Values
| HEX | #313228 |
| RGB | rgb(49, 50, 40) |
| HSL | hsl(66, 11%, 18%) |
| OKLCH | oklch(31.3% 0.017 112) |
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 #313228 | 12.98:1 | AAA | Lc -102.5 | Preferred for body text |
| Black text on #313228 | 1.61:1 | Fails | Lc 0.0 | Not readable |
| #313228 text on white | 12.98:1 | AAA | Lc 99.2 | Preferred for body text |
| #313228 text on black | 1.61: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 950.
-
Step 50
50
#F5F6F3
oklch(97.2% 0.004 121.6)
-
Step 100
100
#EAEAE6
oklch(93.6% 0.005 106.5)
-
Step 200
200
#D9DAD2
oklch(88.5% 0.011 112.4)
-
Step 300
300
#C0C2B3
oklch(80.8% 0.021 113)
-
Step 400
400
#A1A38C
oklch(70.7% 0.033 111.3)
-
Step 500
500
#8A8C6F
oklch(63% 0.042 110.8)
-
Step 600
600
#747657
oklch(55.6% 0.046 110.9)
-
Step 700
700
#616347
oklch(49% 0.042 111.3)
-
Step 800
800
#4F513B
oklch(42.7% 0.035 112.1)
-
Step 900
900
#424333
oklch(37.7% 0.026 110.5)
-
Step 950
950 (this color)
#313228
oklch(31.3% 0.017 112)
#313228 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) | #343127 | 0.006 |
| Deuteranopia (no green cones) | #343128 | 0.006 |
| Tritanopia (no blue cones) | #32312F | 0.014 |
| Achromatopsia (no color) | #313131 | 0.017 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #313228
#313228
oklch(31.3% 0.017 112)
- #313039
#313039
oklch(31.4% 0.016 290.5)
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 #313228, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pakistan Green #283618 ΔE 0.037
- Onyx #343A40 ΔE 0.043
- Gunmetal #293241 ΔE 0.045
- Space Cadet #2B2D42 ΔE 0.055
- Jet #212529 ΔE 0.057
- Charcoal Grey #3C4142 ΔE 0.061
- Dark Blue Grey #1F3B4D ΔE 0.064
- Dark Olive #373E02 ΔE 0.069
Use #313228 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.