#312F73
Closest named color: Marine Blue (#01386A). oklch(34.9% 0.114 280), rgb(49, 47, 115).
Aa
White text reads best on this color (11.76:1).
About this color
#312F73 is a dark, moderately saturated purple. In OKLCH its lightness is 35%, its chroma 0.114 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.054 away. White text reads best on it, at 11.76:1.
| Hue family | Purples |
| Lightness | dark (35%) |
| Chroma | moderately saturated (0.114) |
| Temperature | cool |
| Nearest name | Marine Blue (#01386A) |
| Black text | 1.78:1 |
| White text | 11.76:1 |
Values
| HEX | #312F73 |
| RGB | rgb(49, 47, 115) |
| HSL | hsl(242, 42%, 32%) |
| OKLCH | oklch(34.9% 0.114 280) |
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 #312F73 | 11.76:1 | AAA | Lc -100.4 | Preferred for body text |
| Black text on #312F73 | 1.78:1 | Fails | Lc 0.0 | Not readable |
| #312F73 text on white | 11.76:1 | AAA | Lc 96.7 | Preferred for body text |
| #312F73 text on black | 1.78: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 900.
-
Step 50
50
#F4F5FD
oklch(97.2% 0.011 280.5)
-
Step 100
100
#E6E8FB
oklch(93.5% 0.026 281.1)
-
Step 200
200
#D2D6F9
oklch(88.4% 0.048 280.2)
-
Step 300
300
#B5BBF7
oklch(80.9% 0.085 279.9)
-
Step 400
400
#9196F4
oklch(70.8% 0.136 280)
-
Step 500
500
#7878EF
oklch(63.1% 0.174 280.2)
-
Step 600
600
#635EDE
oklch(55.7% 0.189 280.1)
-
Step 700
700
#524CC0
oklch(49% 0.176 280)
-
Step 800
800
#433F9C
oklch(42.7% 0.147 280.1)
-
Step 900
900 (this color)
#312F73
oklch(34.9% 0.114 280)
-
Step 950
950
#202148
oklch(27% 0.071 279.4)
#312F73 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) | #003A75 | 0.050 |
| Deuteranopia (no green cones) | #003572 | 0.049 |
| Tritanopia (no blue cones) | #113F4C | 0.098 |
| Achromatopsia (no color) | #383838 | 0.114 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #312F73
#312F73
oklch(34.9% 0.114 280)
- #433B00
#433B00
oklch(35% 0.073 100.8)
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 #312F73, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine Blue #01386A ΔE 0.054
- Prussian Blue #1D3557 ΔE 0.061
- Twilight Blue #0A437A ΔE 0.062
- Marine #042E60 ΔE 0.062
- Dark Slate Blue #483D8B ΔE 0.068
- Midnight Blue #191970 ΔE 0.069
- Cobalt #1E488F ΔE 0.078
- Blueberry #464196 ΔE 0.083
Use #312F73 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.