#31296A
Closest named color: Marine (#042E60). oklch(33% 0.109 284.3), rgb(49, 41, 106).
Aa
White text reads best on this color (12.68:1).
About this color
#31296A is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.109 and its hue 284°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.056 away. White text reads best on it, at 12.68:1.
| Hue family | Purples |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.109) |
| Temperature | cool |
| Nearest name | Marine (#042E60) |
| Black text | 1.65:1 |
| White text | 12.68:1 |
Values
| HEX | #31296A |
| RGB | rgb(49, 41, 106) |
| HSL | hsl(247, 44%, 29%) |
| OKLCH | oklch(33% 0.109 284.3) |
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 #31296A | 12.68:1 | AAA | Lc -101.8 | Preferred for body text |
| Black text on #31296A | 1.65:1 | Fails | Lc 0.0 | Not readable |
| #31296A text on white | 12.68:1 | AAA | Lc 98.4 | Preferred for body text |
| #31296A text on black | 1.65: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
#E7E8FA
oklch(93.6% 0.024 283.4)
-
Step 200
200
#D5D6F7
oklch(88.6% 0.045 284.1)
-
Step 300
300
#BABAF4
oklch(80.9% 0.081 284.4)
-
Step 400
400
#9894EF
oklch(70.7% 0.131 284.5)
-
Step 500
500
#8077E9
oklch(63.1% 0.166 284.1)
-
Step 600
600
#6B5CD8
oklch(55.6% 0.183 284.2)
-
Step 700
700
#5A4BBB
oklch(49.1% 0.169 284.4)
-
Step 800
800
#493E97
oklch(42.6% 0.14 284.4)
-
Step 900
900 (this color)
#31296A
oklch(33% 0.109 284.3)
-
Step 950
950
#232046
oklch(26.9% 0.069 284.3)
#31296A 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) | #00356C | 0.056 |
| Deuteranopia (no green cones) | #003169 | 0.054 |
| Tritanopia (no blue cones) | #1B3845 | 0.092 |
| Achromatopsia (no color) | #333333 | 0.109 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #31296A
#31296A
oklch(33% 0.109 284.3)
- #3B3700
#3B3700
oklch(33% 0.07 105.1)
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 #31296A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine #042E60 ΔE 0.056
- Prussian Blue #1D3557 ΔE 0.058
- Marine Blue #01386A ΔE 0.059
- Midnight Blue #191970 ΔE 0.059
- Space Cadet #2B2D42 ΔE 0.076
- Twilight Blue #0A437A ΔE 0.078
- Royal Purple #4B006E ΔE 0.079
- Indigo #4B0082 ΔE 0.082
Use #31296A 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.