#1F2151
Closest named color: Oxford Blue (#1B263B). oklch(27.6% 0.086 277.4), rgb(31, 33, 81).
Aa
White text reads best on this color (15.05:1).
About this color
#1F2151 is a dark, moderately saturated blue. In OKLCH its lightness is 28%, its chroma 0.086 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.047 away. White text reads best on it, at 15.05:1.
| Hue family | Blues |
| Lightness | dark (28%) |
| Chroma | moderately saturated (0.086) |
| Temperature | cool |
| Nearest name | Oxford Blue (#1B263B) |
| Black text | 1.39:1 |
| White text | 15.05:1 |
Values
| HEX | #1F2151 |
| RGB | rgb(31, 33, 81) |
| HSL | hsl(238, 45%, 22%) |
| OKLCH | oklch(27.6% 0.086 277.4) |
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 #1F2151 | 15.05:1 | AAA | Lc -104.6 | Preferred for body text |
| Black text on #1F2151 | 1.39:1 | Fails | Lc 0.0 | Not readable |
| #1F2151 text on white | 15.05:1 | AAA | Lc 101.8 | Preferred for body text |
| #1F2151 text on black | 1.39: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
#F3F5FF
oklch(97.2% 0.013 277.1)
-
Step 100
100
#E4E9FE
oklch(93.7% 0.029 275.2)
-
Step 200
200
#CFD6FF
oklch(88.4% 0.057 277.5)
-
Step 300
300
#B1BBFF
oklch(80.9% 0.097 277.5)
-
Step 400
400
#8A95FF
oklch(70.7% 0.154 277.2)
-
Step 500
500
#7075FF
oklch(63.1% 0.201 277.4)
-
Step 600
600
#5B56F3
oklch(55.5% 0.227 277.4)
-
Step 700
700
#4C45D4
oklch(49.2% 0.211 277.4)
-
Step 800
800
#3E3AAB
oklch(42.7% 0.175 277.6)
-
Step 900
900
#333487
oklch(37.7% 0.135 277.2)
-
Step 950
950 (this color)
#1F2151
oklch(27.6% 0.086 277.4)
#1F2151 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) | #042853 | 0.033 |
| Deuteranopia (no green cones) | #002450 | 0.035 |
| Tritanopia (no blue cones) | #042C35 | 0.075 |
| Achromatopsia (no color) | #262626 | 0.086 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1F2151
#1F2151
oklch(27.6% 0.086 277.4)
- #302800
#302800
oklch(27.7% 0.057 97.6)
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 #1F2151, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Oxford Blue #1B263B ΔE 0.047
- Marine #042E60 ΔE 0.048
- Dark Indigo #1F0954 ΔE 0.054
- Space Cadet #2B2D42 ΔE 0.056
- Midnight Blue #191970 ΔE 0.059
- Prussian Blue #1D3557 ΔE 0.061
- Dark #1B2431 ΔE 0.063
- Gunmetal #293241 ΔE 0.070
Use #1F2151 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.