#1F3871
Closest named color: Marine Blue (#01386A). oklch(35.5% 0.103 264.1), rgb(31, 56, 113).
Aa
White text reads best on this color (11.27:1).
About this color
#1F3871 is a dark, moderately saturated blue. In OKLCH its lightness is 35%, its chroma 0.103 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.026 away. White text reads best on it, at 11.27:1.
| Hue family | Blues |
| Lightness | dark (35%) |
| Chroma | moderately saturated (0.103) |
| Temperature | cool |
| Nearest name | Marine Blue (#01386A) |
| Black text | 1.86:1 |
| White text | 11.27:1 |
Values
| HEX | #1F3871 |
| RGB | rgb(31, 56, 113) |
| HSL | hsl(222, 57%, 28%) |
| OKLCH | oklch(35.5% 0.103 264.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 #1F3871 | 11.27:1 | AAA | Lc -99.5 | Preferred for body text |
| Black text on #1F3871 | 1.86:1 | Fails | Lc 8.2 | Not readable |
| #1F3871 text on white | 11.27:1 | AAA | Lc 95.7 | Preferred for body text |
| #1F3871 text on black | 1.86: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
#F2F6FD
oklch(97.2% 0.01 261.8)
-
Step 100
100
#E2EAF9
oklch(93.5% 0.022 263.2)
-
Step 200
200
#CBDAF6
oklch(88.6% 0.042 263)
-
Step 300
300
#A7C1F4
oklch(80.9% 0.078 263.6)
-
Step 400
400
#799FEE
oklch(70.8% 0.124 263.9)
-
Step 500
500
#5784E8
oklch(63% 0.159 264.1)
-
Step 600
600
#3E6CD7
oklch(55.7% 0.172 264.1)
-
Step 700
700
#3059BA
oklch(49.1% 0.16 264.1)
-
Step 800
800
#284996
oklch(42.6% 0.132 264.1)
-
Step 900
900 (this color)
#1F3871
oklch(35.5% 0.103 264.1)
-
Step 950
950
#162546
oklch(27.1% 0.065 264.1)
#1F3871 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) | #193F73 | 0.020 |
| Deuteranopia (no green cones) | #053770 | 0.021 |
| Tritanopia (no blue cones) | #00454F | 0.083 |
| Achromatopsia (no color) | #3B3B3B | 0.103 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1F3871
#1F3871
oklch(35.5% 0.103 264.1)
- #4D3800
#4D3800
oklch(35.5% 0.073 85)
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 #1F3871, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine Blue #01386A ΔE 0.026
- Twilight Blue #0A437A ΔE 0.034
- Prussian Blue #1D3557 ΔE 0.046
- Marine #042E60 ΔE 0.050
- Cobalt #1E488F ΔE 0.064
- Dark Grey Blue #29465B ΔE 0.066
- Dark Blue Grey #1F3B4D ΔE 0.066
- Midnight Green #073B4C ΔE 0.072
Use #1F3871 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.