#20276D
Closest named color: Midnight Blue (#191970). oklch(31.5% 0.12 273), rgb(32, 39, 109).
Aa
White text reads best on this color (13.35:1).
About this color
#20276D is a dark, moderately saturated blue. In OKLCH its lightness is 31%, its chroma 0.120 and its hue 273°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.035 away. White text reads best on it, at 13.35:1.
| Hue family | Blues |
| Lightness | dark (31%) |
| Chroma | moderately saturated (0.120) |
| Temperature | cool |
| Nearest name | Midnight Blue (#191970) |
| Black text | 1.57:1 |
| White text | 13.35:1 |
Values
| HEX | #20276D |
| RGB | rgb(32, 39, 109) |
| HSL | hsl(235, 55%, 28%) |
| OKLCH | oklch(31.5% 0.12 273) |
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 #20276D | 13.35:1 | AAA | Lc -102.6 | Preferred for body text |
| Black text on #20276D | 1.57:1 | Fails | Lc 0.0 | Not readable |
| #20276D text on white | 13.35:1 | AAA | Lc 99.4 | Preferred for body text |
| #20276D text on black | 1.57: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
#F2F5FF
oklch(97.1% 0.014 272.7)
-
Step 100
100
#E3E9FF
oklch(93.6% 0.03 273.6)
-
Step 200
200
#CCD7FF
oklch(88.4% 0.057 273.1)
-
Step 300
300
#ACBDFF
oklch(80.9% 0.095 273)
-
Step 400
400
#8298FF
oklch(70.8% 0.152 272.8)
-
Step 500
500
#6579FF
oklch(63.1% 0.198 273)
-
Step 600
600
#4D55FF
oklch(55.5% 0.246 273)
-
Step 700
700
#3F26FF
oklch(49.1% 0.288 273)
-
Step 800
800
#3223D0
oklch(42.7% 0.243 272.8)
-
Step 900
900
#2928A3
oklch(37.7% 0.189 272.9)
-
Step 950
950 (this color)
#20276D
oklch(31.5% 0.12 273)
#20276D 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) | #00336F | 0.038 |
| Deuteranopia (no green cones) | #002C6C | 0.030 |
| Tritanopia (no blue cones) | #003946 | 0.099 |
| Achromatopsia (no color) | #2F2F2F | 0.121 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #20276D
#20276D
oklch(31.5% 0.12 273)
- #3D3000
#3D3000
oklch(31.5% 0.064 92.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 #20276D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Blue #191970 ΔE 0.035
- Marine #042E60 ΔE 0.039
- Marine Blue #01386A ΔE 0.050
- Prussian Blue #1D3557 ΔE 0.059
- Royal #0C1793 ΔE 0.074
- Twilight Blue #0A437A ΔE 0.078
- Dark Royal Blue #02066F ΔE 0.079
- Deep Blue #040273 ΔE 0.081
Use #20276D 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.