#31271A
Closest named color: Dark Brown (#341C02). oklch(28% 0.027 73.7), rgb(49, 39, 26).
Aa
White text reads best on this color (14.62:1).
About this color
#31271A is a dark close to neutral grey. In OKLCH its lightness is 28%, its chroma 0.027. It has too little chroma to lean warm or cool. The nearest named color is Dark Brown (#341C02), ΔE 0.039 away. White text reads best on it, at 14.62:1.
| Hue family | Neutrals |
| Lightness | dark (28%) |
| Chroma | close to neutral grey (0.027) |
| Temperature | neutral |
| Nearest name | Dark Brown (#341C02) |
| Black text | 1.43:1 |
| White text | 14.62:1 |
Values
| HEX | #31271A |
| RGB | rgb(49, 39, 26) |
| HSL | hsl(34, 31%, 15%) |
| OKLCH | oklch(28% 0.027 73.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 #31271A | 14.62:1 | AAA | Lc -104.3 | Preferred for body text |
| Black text on #31271A | 1.43:1 | Fails | Lc 0.0 | Not readable |
| #31271A text on white | 14.62:1 | AAA | Lc 101.4 | Preferred for body text |
| #31271A text on black | 1.43: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
#F7F5F2
oklch(97.1% 0.005 78.3)
-
Step 100
100
#EEE9E3
oklch(93.6% 0.01 72.7)
-
Step 200
200
#E0D8CD
oklch(88.6% 0.017 76.1)
-
Step 300
300
#CDBEAB
oklch(80.9% 0.031 73.8)
-
Step 400
400
#B49C7E
oklch(70.6% 0.05 73.1)
-
Step 500
500
#A1845D
oklch(63.1% 0.065 74.4)
-
Step 600
600
#8C6D43
oklch(55.6% 0.07 73.9)
-
Step 700
700
#775B35
oklch(49.1% 0.065 73.8)
-
Step 800
800
#614A2C
oklch(42.6% 0.054 72.9)
-
Step 900
900
#4F3E28
oklch(37.6% 0.042 73.2)
-
Step 950
950 (this color)
#31271A
oklch(28% 0.027 73.7)
#31271A 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) | #2B2719 | 0.012 |
| Deuteranopia (no green cones) | #2D2A1A | 0.012 |
| Tritanopia (no blue cones) | #352424 | 0.024 |
| Achromatopsia (no color) | #292929 | 0.027 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #31271A
#31271A
oklch(28% 0.027 73.7)
- #202A36
#202A36
oklch(28.1% 0.026 253.3)
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 #31271A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Brown #341C02 ΔE 0.039
- Jet #212529 ΔE 0.041
- Chocolate Brown #411900 ΔE 0.050
- Pakistan Green #283618 ΔE 0.054
- Dark #1B2431 ΔE 0.059
- Gunmetal #293241 ΔE 0.067
- Space Cadet #2B2D42 ΔE 0.068
- Oxford Blue #1B263B ΔE 0.070
Use #31271A 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.