#31327F
Closest named color: Dark Slate Blue (#483D8B). oklch(36.5% 0.127 277.5), rgb(49, 50, 127).
Aa
White text reads best on this color (11.09:1).
About this color
#31327F is a dark, moderately saturated blue. In OKLCH its lightness is 36%, its chroma 0.127 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.053 away. White text reads best on it, at 11.09:1.
| Hue family | Blues |
| Lightness | dark (36%) |
| Chroma | moderately saturated (0.127) |
| Temperature | cool |
| Nearest name | Dark Slate Blue (#483D8B) |
| Black text | 1.89:1 |
| White text | 11.09:1 |
Values
| HEX | #31327F |
| RGB | rgb(49, 50, 127) |
| HSL | hsl(239, 44%, 35%) |
| OKLCH | oklch(36.5% 0.127 277.5) |
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 #31327F | 11.09:1 | AAA | Lc -99.1 | Preferred for body text |
| Black text on #31327F | 1.89:1 | Fails | Lc 8.6 | Not readable |
| #31327F text on white | 11.09:1 | AAA | Lc 95.3 | Preferred for body text |
| #31327F text on black | 1.89:1 | Fails | Lc -7.4 | 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
#F3F5FE
oklch(97.1% 0.012 276.1)
-
Step 100
100
#E5E9FD
oklch(93.7% 0.027 276.8)
-
Step 200
200
#D0D7FD
oklch(88.6% 0.053 277)
-
Step 300
300
#B1BBFE
oklch(80.9% 0.095 277.5)
-
Step 400
400
#8B95FE
oklch(70.8% 0.153 277.6)
-
Step 500
500
#7176FC
oklch(63.1% 0.195 277.6)
-
Step 600
600
#5C5AEB
oklch(55.6% 0.212 277.6)
-
Step 700
700
#4C49CC
oklch(49.1% 0.196 277.3)
-
Step 800
800
#3E3DA5
oklch(42.7% 0.163 277.4)
-
Step 900
900 (this color)
#31327F
oklch(36.5% 0.127 277.5)
-
Step 950
950
#1E204D
oklch(27% 0.081 277.5)
#31327F 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) | #003F82 | 0.049 |
| Deuteranopia (no green cones) | #00387D | 0.045 |
| Tritanopia (no blue cones) | #004453 | 0.109 |
| Achromatopsia (no color) | #3C3C3C | 0.127 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #31327F
#31327F
oklch(36.5% 0.127 277.5)
- #493E00
#493E00
oklch(36.4% 0.075 97.9)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes and gradients that use #31327F
These curated palettes and gradients contain exactly #31327F. Open one to see the full color scheme around it.
Gradients
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Blue #483D8B ΔE 0.053
- Twilight Blue #0A437A ΔE 0.056
- Marine Blue #01386A ΔE 0.061
- Cobalt #1E488F ΔE 0.062
- Blueberry #464196 ΔE 0.065
- Sapphire #2138AB ΔE 0.076
- Marine #042E60 ΔE 0.076
- Prussian Blue #1D3557 ΔE 0.077
Use #31327F 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.