#313A9A
Closest named color: Sapphire (#2138AB). oklch(40.3% 0.155 273.1), rgb(49, 58, 154).
Aa
White text reads best on this color (9.53:1).
About this color
#313A9A is a dark, vivid blue. In OKLCH its lightness is 40%, its chroma 0.155 and its hue 273°. Its hue sits on the cool side of the wheel. The nearest named color is Sapphire (#2138AB), ΔE 0.034 away. White text reads best on it, at 9.53:1.
| Hue family | Blues |
| Lightness | dark (40%) |
| Chroma | vivid (0.155) |
| Temperature | cool |
| Nearest name | Sapphire (#2138AB) |
| Black text | 2.20:1 |
| White text | 9.53:1 |
Values
| HEX | #313A9A |
| RGB | rgb(49, 58, 154) |
| HSL | hsl(235, 52%, 40%) |
| OKLCH | oklch(40.3% 0.155 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 #313A9A | 9.53:1 | AAA | Lc -95.9 | Preferred for body text |
| Black text on #313A9A | 2.20:1 | Fails | Lc 12.4 | Not readable |
| #313A9A text on white | 9.53:1 | AAA | Lc 91.6 | Preferred for body text |
| #313A9A text on black | 2.20:1 | Fails | Lc -10.8 | 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
#CED8FB
oklch(88.6% 0.049 272.8)
-
Step 300
300
#ADBDFC
oklch(80.9% 0.091 273.2)
-
Step 400
400
#8498FA
oklch(70.7% 0.145 273.4)
-
Step 500
500
#677BF7
oklch(63% 0.185 273.1)
-
Step 600
600
#5160E6
oklch(55.5% 0.201 273.1)
-
Step 700
700
#434EC8
oklch(49% 0.187 273.3)
-
Step 800
800 (this color)
#313A9A
oklch(40.3% 0.155 273.1)
-
Step 900
900
#2E3980
oklch(37.7% 0.12 272.7)
-
Step 950
950
#1B224B
oklch(27% 0.076 273)
#313A9A 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) | #004A9D | 0.048 |
| Deuteranopia (no green cones) | #004198 | 0.038 |
| Tritanopia (no blue cones) | #005264 | 0.126 |
| Achromatopsia (no color) | #454545 | 0.155 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #313A9A
#313A9A
oklch(40.3% 0.155 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 #313A9A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Sapphire #2138AB ΔE 0.034
- Blueberry #464196 ΔE 0.039
- Cobalt #1E488F ΔE 0.043
- Dark Slate Blue #483D8B ΔE 0.045
- Indigo Blue #3A18B1 ΔE 0.065
- Twilight Blue #0A437A ΔE 0.069
- Dusk Blue #26538D ΔE 0.072
- Light Navy #155084 ΔE 0.075
Use #313A9A 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.