#1F2A51
Closest named color: Prussian Blue (#1D3557). oklch(29.7% 0.072 269.7), rgb(31, 42, 81).
Aa
White text reads best on this color (13.92:1).
About this color
#1F2A51 is a dark, moderately saturated blue. In OKLCH its lightness is 30%, its chroma 0.072 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.034 away. White text reads best on it, at 13.92:1.
| Hue family | Blues |
| Lightness | dark (30%) |
| Chroma | moderately saturated (0.072) |
| Temperature | cool |
| Nearest name | Prussian Blue (#1D3557) |
| Black text | 1.50:1 |
| White text | 13.92:1 |
Values
| HEX | #1F2A51 |
| RGB | rgb(31, 42, 81) |
| HSL | hsl(227, 45%, 22%) |
| OKLCH | oklch(29.7% 0.072 269.7) |
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 #1F2A51 | 13.92:1 | AAA | Lc -103.5 | Preferred for body text |
| Black text on #1F2A51 | 1.50:1 | Fails | Lc 0.0 | Not readable |
| #1F2A51 text on white | 13.92:1 | AAA | Lc 100.4 | Preferred for body text |
| #1F2A51 text on black | 1.50: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 950.
-
Step 50
50
#F2F5FD
oklch(97% 0.011 269.6)
-
Step 100
100
#E3EAFB
oklch(93.7% 0.024 267.9)
-
Step 200
200
#CCD8FA
oklch(88.4% 0.049 270)
-
Step 300
300
#ABBFF9
oklch(81% 0.085 269.7)
-
Step 400
400
#7F9BF6
oklch(70.7% 0.137 269.7)
-
Step 500
500
#617FF2
oklch(63.1% 0.175 269.8)
-
Step 600
600
#4A65E1
oklch(55.7% 0.191 269.9)
-
Step 700
700
#3B53C3
oklch(49.1% 0.177 269.6)
-
Step 800
800
#31459E
oklch(42.8% 0.146 269.6)
-
Step 900
900
#2A3B7D
oklch(37.7% 0.114 269.4)
-
Step 950
950 (this color)
#1F2A51
oklch(29.7% 0.072 269.7)
#1F2A51 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) | #192F52 | 0.016 |
| Deuteranopia (no green cones) | #122A50 | 0.016 |
| Tritanopia (no blue cones) | #023339 | 0.066 |
| Achromatopsia (no color) | #2C2C2C | 0.072 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1F2A51
#1F2A51
oklch(29.7% 0.072 269.7)
- #392B00
#392B00
oklch(29.7% 0.061 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 #1F2A51, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Prussian Blue #1D3557 ΔE 0.034
- Marine #042E60 ΔE 0.035
- Space Cadet #2B2D42 ΔE 0.036
- Oxford Blue #1B263B ΔE 0.042
- Gunmetal #293241 ΔE 0.047
- Marine Blue #01386A ΔE 0.058
- Dark Blue Grey #1F3B4D ΔE 0.058
- Midnight Green #073B4C ΔE 0.060
Use #1F2A51 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.