#2C2A7A
Closest named color: Midnight Blue (#191970). oklch(34.1% 0.132 277.9), rgb(44, 42, 122).
Aa
White text reads best on this color (12.21:1).
About this color
#2C2A7A is a dark, moderately saturated blue. In OKLCH its lightness is 34%, its chroma 0.132 and its hue 278°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.056 away. White text reads best on it, at 12.21:1.
| Hue family | Blues |
| Lightness | dark (34%) |
| Chroma | moderately saturated (0.132) |
| Temperature | cool |
| Nearest name | Midnight Blue (#191970) |
| Black text | 1.71:1 |
| White text | 12.21:1 |
Values
| HEX | #2C2A7A |
| RGB | rgb(44, 42, 122) |
| HSL | hsl(242, 49%, 32%) |
| OKLCH | oklch(34.1% 0.132 277.9) |
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 #2C2A7A | 12.21:1 | AAA | Lc -101.0 | Preferred for body text |
| Black text on #2C2A7A | 1.71:1 | Fails | Lc 0.0 | Not readable |
| #2C2A7A text on white | 12.21:1 | AAA | Lc 97.4 | Preferred for body text |
| #2C2A7A text on black | 1.71: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
#F3F5FF
oklch(97.2% 0.013 277.1)
-
Step 100
100
#E5E9FD
oklch(93.7% 0.027 276.8)
-
Step 200
200
#D0D6FE
oklch(88.4% 0.055 278.5)
-
Step 300
300
#B1BBFF
oklch(80.9% 0.097 277.5)
-
Step 400
400
#8B94FF
oklch(70.6% 0.155 278)
-
Step 500
500
#7175FF
oklch(63.1% 0.201 277.7)
-
Step 600
600
#5D58EF
oklch(55.6% 0.22 278)
-
Step 700
700
#4D46D0
oklch(49% 0.205 277.9)
-
Step 800
800
#3F3BA8
oklch(42.7% 0.169 278.1)
-
Step 900
900 (this color)
#2C2A7A
oklch(34.1% 0.132 277.9)
-
Step 950
950
#1E204E
oklch(27.1% 0.083 277.4)
#2C2A7A 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) | #00397D | 0.050 |
| Deuteranopia (no green cones) | #003278 | 0.044 |
| Tritanopia (no blue cones) | #003E4E | 0.110 |
| Achromatopsia (no color) | #353535 | 0.133 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #2C2A7A
#2C2A7A
oklch(34.1% 0.132 277.9)
- #423800
#423800
oklch(34.1% 0.07 98)
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 #2C2A7A, closest first.
No curated palette has a color within ΔE 0.04 of #2C2A7A.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Blue #191970 ΔE 0.056
- Marine Blue #01386A ΔE 0.060
- Marine #042E60 ΔE 0.064
- Twilight Blue #0A437A ΔE 0.070
- Royal #0C1793 ΔE 0.071
- Prussian Blue #1D3557 ΔE 0.074
- Dark Slate Blue #483D8B ΔE 0.076
- Indigo #4B0082 ΔE 0.079
Use #2C2A7A 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.