#1F2754
Closest named color: Marine (#042E60). oklch(29.2% 0.082 272.8), rgb(31, 39, 84).
Aa
White text reads best on this color (14.22:1).
About this color
#1F2754 is a dark, moderately saturated blue. In OKLCH its lightness is 29%, its chroma 0.082 and its hue 273°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.035 away. White text reads best on it, at 14.22:1.
| Hue family | Blues |
| Lightness | dark (29%) |
| Chroma | moderately saturated (0.082) |
| Temperature | cool |
| Nearest name | Marine (#042E60) |
| Black text | 1.47:1 |
| White text | 14.22:1 |
Values
| HEX | #1F2754 |
| RGB | rgb(31, 39, 84) |
| HSL | hsl(231, 46%, 23%) |
| OKLCH | oklch(29.2% 0.082 272.8) |
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 #1F2754 | 14.22:1 | AAA | Lc -103.8 | Preferred for body text |
| Black text on #1F2754 | 1.47:1 | Fails | Lc 0.0 | Not readable |
| #1F2754 text on white | 14.22:1 | AAA | Lc 100.8 | Preferred for body text |
| #1F2754 text on black | 1.47: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
#F2F5FE
oklch(97% 0.012 271.3)
-
Step 100
100
#E3E9FD
oklch(93.5% 0.028 272.5)
-
Step 200
200
#CDD8FE
oklch(88.6% 0.054 272.5)
-
Step 300
300
#ACBDFF
oklch(80.9% 0.095 273)
-
Step 400
400
#8198FF
oklch(70.7% 0.153 272.5)
-
Step 500
500
#6579FF
oklch(63.1% 0.198 273)
-
Step 600
600
#4F5EEE
oklch(55.7% 0.214 272.7)
-
Step 700
700
#414CCF
oklch(49.2% 0.199 272.9)
-
Step 800
800
#353FA7
oklch(42.6% 0.165 272.9)
-
Step 900
900
#2D3785
oklch(37.7% 0.13 273)
-
Step 950
950 (this color)
#1F2754
oklch(29.2% 0.082 272.8)
#1F2754 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) | #102D56 | 0.023 |
| Deuteranopia (no green cones) | #082853 | 0.025 |
| Tritanopia (no blue cones) | #003139 | 0.072 |
| Achromatopsia (no color) | #2B2B2B | 0.082 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1F2754
#1F2754
oklch(29.2% 0.082 272.8)
- #362B00
#362B00
oklch(29.3% 0.06 93.8)
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 #1F2754, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine #042E60 ΔE 0.035
- Prussian Blue #1D3557 ΔE 0.043
- Space Cadet #2B2D42 ΔE 0.046
- Oxford Blue #1B263B ΔE 0.047
- Gunmetal #293241 ΔE 0.058
- Marine Blue #01386A ΔE 0.060
- Midnight Blue #191970 ΔE 0.062
- Dark #1B2431 ΔE 0.065
Use #1F2754 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.