#1F2D71
Closest named color: Marine Blue (#01386A). oklch(33% 0.118 269.9), rgb(31, 45, 113).
Aa
White text reads best on this color (12.55:1).
About this color
#1F2D71 is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.118 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.039 away. White text reads best on it, at 12.55:1.
| Hue family | Blues |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.118) |
| Temperature | cool |
| Nearest name | Marine Blue (#01386A) |
| Black text | 1.67:1 |
| White text | 12.55:1 |
Values
| HEX | #1F2D71 |
| RGB | rgb(31, 45, 113) |
| HSL | hsl(230, 57%, 28%) |
| OKLCH | oklch(33% 0.118 269.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 #1F2D71 | 12.55:1 | AAA | Lc -101.6 | Preferred for body text |
| Black text on #1F2D71 | 1.67:1 | Fails | Lc 0.0 | Not readable |
| #1F2D71 text on white | 12.55:1 | AAA | Lc 98.1 | Preferred for body text |
| #1F2D71 text on black | 1.67: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
#F2F5FE
oklch(97% 0.012 271.3)
-
Step 100
100
#E3EAFC
oklch(93.7% 0.025 268.8)
-
Step 200
200
#CCD8FB
oklch(88.4% 0.05 270.4)
-
Step 300
300
#AABEFB
oklch(80.8% 0.089 270.3)
-
Step 400
400
#7E9AF9
oklch(70.6% 0.143 270)
-
Step 500
500
#607EF6
oklch(63.1% 0.182 270)
-
Step 600
600
#4964E5
oklch(55.7% 0.197 269.9)
-
Step 700
700
#3B52C7
oklch(49.2% 0.183 269.8)
-
Step 800
800
#3044A1
oklch(42.8% 0.152 269.6)
-
Step 900
900 (this color)
#1F2D71
oklch(33% 0.118 269.9)
-
Step 950
950
#18234B
oklch(27.1% 0.075 269.3)
#1F2D71 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) | #003773 | 0.032 |
| Deuteranopia (no green cones) | #003070 | 0.025 |
| Tritanopia (no blue cones) | #003E4A | 0.097 |
| Achromatopsia (no color) | #333333 | 0.119 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1F2D71
#1F2D71
oklch(33% 0.118 269.9)
- #433300
#433300
oklch(33% 0.067 89.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 #1F2D71, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine Blue #01386A ΔE 0.039
- Marine #042E60 ΔE 0.040
- Midnight Blue #191970 ΔE 0.049
- Prussian Blue #1D3557 ΔE 0.054
- Twilight Blue #0A437A ΔE 0.062
- Royal #0C1793 ΔE 0.075
- Dark Blue Grey #1F3B4D ΔE 0.083
- Space Cadet #2B2D42 ΔE 0.085
Use #1F2D71 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.