#313E82
Closest named color: Cobalt (#1E488F). oklch(39.2% 0.115 271.9), rgb(49, 62, 130).
Aa
White text reads best on this color (9.80:1).
About this color
#313E82 is a dark, moderately saturated blue. In OKLCH its lightness is 39%, its chroma 0.115 and its hue 272°. Its hue sits on the cool side of the wheel. The nearest named color is Cobalt (#1E488F), ΔE 0.035 away. White text reads best on it, at 9.80:1.
| Hue family | Blues |
| Lightness | dark (39%) |
| Chroma | moderately saturated (0.115) |
| Temperature | cool |
| Nearest name | Cobalt (#1E488F) |
| Black text | 2.14:1 |
| White text | 9.80:1 |
Values
| HEX | #313E82 |
| RGB | rgb(49, 62, 130) |
| HSL | hsl(230, 45%, 35%) |
| OKLCH | oklch(39.2% 0.115 271.9) |
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 #313E82 | 9.80:1 | AAA | Lc -96.7 | Preferred for body text |
| Black text on #313E82 | 2.14:1 | Fails | Lc 11.5 | Not readable |
| #313E82 text on white | 9.80:1 | AAA | Lc 92.5 | Preferred for body text |
| #313E82 text on black | 2.14:1 | Fails | Lc -9.9 | 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
#F3F5FD
oklch(97.1% 0.011 274.9)
-
Step 100
100
#E4E9FB
oklch(93.6% 0.025 273.5)
-
Step 200
200
#CED8FA
oklch(88.5% 0.048 272.4)
-
Step 300
300
#ADBEF9
oklch(81% 0.086 271.9)
-
Step 400
400
#839AF6
oklch(70.8% 0.137 271.9)
-
Step 500
500
#667DF2
oklch(63% 0.176 272.1)
-
Step 600
600
#4F63E1
oklch(55.6% 0.192 271.8)
-
Step 700
700
#4151C3
oklch(49% 0.178 272.1)
-
Step 800
800
#35439E
oklch(42.6% 0.148 272)
-
Step 900
900 (this color)
#313E82
oklch(39.2% 0.115 271.9)
-
Step 950
950
#1A2249
oklch(26.8% 0.073 271.9)
#313E82 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) | #194784 | 0.032 |
| Deuteranopia (no green cones) | #064081 | 0.037 |
| Tritanopia (no blue cones) | #004E5A | 0.100 |
| Achromatopsia (no color) | #444444 | 0.115 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #313E82
#313E82
oklch(39.2% 0.115 271.9)
- #554300
#554300
oklch(39.1% 0.08 91.4)
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 #313E82, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Cobalt #1E488F ΔE 0.035
- Dark Slate Blue #483D8B ΔE 0.039
- Twilight Blue #0A437A ΔE 0.039
- Blueberry #464196 ΔE 0.047
- Light Navy #155084 ΔE 0.053
- Dusk Blue #26538D ΔE 0.059
- Marine Blue #01386A ΔE 0.065
- Deep Sea Blue #015482 ΔE 0.067
Use #313E82 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.