#1D2A7A
Closest named color: Midnight Blue (#191970). oklch(33.1% 0.136 270), rgb(29, 42, 122).
Aa
White text reads best on this color (12.61:1).
About this color
#1D2A7A is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.136 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.044 away. White text reads best on it, at 12.61:1.
| Hue family | Blues |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.136) |
| Temperature | cool |
| Nearest name | Midnight Blue (#191970) |
| Black text | 1.66:1 |
| White text | 12.61:1 |
Values
| HEX | #1D2A7A |
| RGB | rgb(29, 42, 122) |
| HSL | hsl(232, 62%, 30%) |
| OKLCH | oklch(33.1% 0.136 270) |
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 #1D2A7A | 12.61:1 | AAA | Lc -101.5 | Preferred for body text |
| Black text on #1D2A7A | 1.66:1 | Fails | Lc 0.0 | Not readable |
| #1D2A7A text on white | 12.61:1 | AAA | Lc 98.1 | Preferred for body text |
| #1D2A7A text on black | 1.66: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
#F2F5FF
oklch(97.1% 0.014 272.7)
-
Step 100
100
#E2E9FE
oklch(93.5% 0.029 271.1)
-
Step 200
200
#CBD8FF
oklch(88.5% 0.056 270.7)
-
Step 300
300
#A8BEFF
oklch(80.9% 0.096 269.8)
-
Step 400
400
#7C99FF
oklch(70.6% 0.153 270.2)
-
Step 500
500
#5D7CFF
oklch(63.2% 0.197 269.9)
-
Step 600
600
#445DF5
oklch(55.5% 0.227 269.9)
-
Step 700
700
#374BD5
oklch(49% 0.211 270)
-
Step 800
800
#2D3FAC
oklch(42.6% 0.174 269.9)
-
Step 900
900 (this color)
#1D2A7A
oklch(33.1% 0.136 270)
-
Step 950
950
#172150
oklch(26.9% 0.087 270.5)
#1D2A7A 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) | #00387D | 0.038 |
| Deuteranopia (no green cones) | #002F78 | 0.024 |
| Tritanopia (no blue cones) | #003F4E | 0.108 |
| Achromatopsia (no color) | #333333 | 0.136 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #1D2A7A
#1D2A7A
oklch(33.1% 0.136 270)
- #433400
#433400
oklch(33.2% 0.068 90.9)
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 #1D2A7A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Blue #191970 ΔE 0.044
- Marine Blue #01386A ΔE 0.051
- Marine #042E60 ΔE 0.052
- Royal #0C1793 ΔE 0.058
- Twilight Blue #0A437A ΔE 0.067
- Prussian Blue #1D3557 ΔE 0.072
- Dark Blue #00008B ΔE 0.079
- Navy #000080 ΔE 0.081
Use #1D2A7A 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.