#313A9B
Closest named color: Sapphire (#2138AB). oklch(40.4% 0.156 273.1), rgb(49, 58, 155).
Aa
White text reads best on this color (9.50:1).
About this color
#313A9B is a dark, vivid blue. In OKLCH its lightness is 40%, its chroma 0.156 and its hue 273°. Its hue sits on the cool side of the wheel. The nearest named color is Sapphire (#2138AB), ΔE 0.032 away. White text reads best on it, at 9.50:1.
| Hue family | Blues |
| Lightness | dark (40%) |
| Chroma | vivid (0.156) |
| Temperature | cool |
| Nearest name | Sapphire (#2138AB) |
| Black text | 2.20:1 |
| White text | 9.50:1 |
Values
| HEX | #313A9B |
| RGB | rgb(49, 58, 155) |
| HSL | hsl(235, 52%, 40%) |
| OKLCH | oklch(40.4% 0.156 273.1) |
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 #313A9B | 9.50:1 | AAA | Lc -95.8 | Preferred for body text |
| Black text on #313A9B | 2.20:1 | Fails | Lc 12.5 | Not readable |
| #313A9B text on white | 9.50:1 | AAA | Lc 91.5 | Preferred for body text |
| #313A9B text on black | 2.20:1 | Fails | Lc -10.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 800.
-
Step 50
50
#F3F5FE
oklch(97.1% 0.012 276.1)
-
Step 100
100
#E4E9FC
oklch(93.6% 0.026 274.1)
-
Step 200
200
#CED8FC
oklch(88.6% 0.051 273.1)
-
Step 300
300
#ADBDFC
oklch(80.9% 0.091 273.2)
-
Step 400
400
#8398FB
oklch(70.6% 0.147 273.1)
-
Step 500
500
#677BF8
oklch(63.1% 0.186 273.1)
-
Step 600
600
#5160E7
oklch(55.6% 0.203 273.1)
-
Step 700
700
#424EC9
oklch(49% 0.189 273)
-
Step 800
800 (this color)
#313A9B
oklch(40.4% 0.156 273.1)
-
Step 900
900
#2E3881
oklch(37.6% 0.123 273.2)
-
Step 950
950
#1B224B
oklch(27% 0.076 273)
#313A9B 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) | #004A9E | 0.047 |
| Deuteranopia (no green cones) | #004199 | 0.038 |
| Tritanopia (no blue cones) | #005265 | 0.126 |
| Achromatopsia (no color) | #464646 | 0.156 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #313A9B
#313A9B
oklch(40.4% 0.156 273.1)
- #584700
#584700
oklch(40.4% 0.083 93.2)
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 #313A9B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Sapphire #2138AB ΔE 0.032
- Blueberry #464196 ΔE 0.039
- Cobalt #1E488F ΔE 0.044
- Dark Slate Blue #483D8B ΔE 0.046
- Indigo Blue #3A18B1 ΔE 0.064
- Twilight Blue #0A437A ΔE 0.070
- Dusk Blue #26538D ΔE 0.072
- Blue Blue #2242C7 ΔE 0.074
Use #313A9B 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.