#2B2B7C
Closest named color: Midnight Blue (#191970). oklch(34.4% 0.134 276.8), rgb(43, 43, 124).
Aa
White text reads best on this color (12.07:1).
About this color
#2B2B7C is a dark, moderately saturated blue. In OKLCH its lightness is 34%, its chroma 0.134 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.058 away. White text reads best on it, at 12.07:1.
| Hue family | Blues |
| Lightness | dark (34%) |
| Chroma | moderately saturated (0.134) |
| Temperature | cool |
| Nearest name | Midnight Blue (#191970) |
| Black text | 1.73:1 |
| White text | 12.07:1 |
Values
| HEX | #2B2B7C |
| RGB | rgb(43, 43, 124) |
| HSL | hsl(240, 49%, 33%) |
| OKLCH | oklch(34.4% 0.134 276.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 #2B2B7C | 12.07:1 | AAA | Lc -100.7 | Preferred for body text |
| Black text on #2B2B7C | 1.73:1 | Fails | Lc 0.0 | Not readable |
| #2B2B7C text on white | 12.07:1 | AAA | Lc 97.1 | Preferred for body text |
| #2B2B7C text on black | 1.73: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
#E4E9FE
oklch(93.7% 0.029 275.2)
-
Step 200
200
#CFD7FF
oklch(88.6% 0.056 276.3)
-
Step 300
300
#B0BBFF
oklch(80.8% 0.097 276.9)
-
Step 400
400
#8995FF
oklch(70.7% 0.154 276.8)
-
Step 500
500
#6F76FF
oklch(63.2% 0.2 276.8)
-
Step 600
600
#5A58F1
oklch(55.6% 0.223 276.9)
-
Step 700
700
#4A47D2
oklch(49.2% 0.207 276.6)
-
Step 800
800
#3C3BAA
oklch(42.7% 0.172 276.6)
-
Step 900
900 (this color)
#2B2B7C
oklch(34.4% 0.134 276.8)
-
Step 950
950
#1D204F
oklch(27.1% 0.085 276.4)
#2B2B7C 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) | #003A7F | 0.048 |
| Deuteranopia (no green cones) | #00337A | 0.041 |
| Tritanopia (no blue cones) | #003F4F | 0.111 |
| Achromatopsia (no color) | #363636 | 0.134 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #2B2B7C
#2B2B7C
oklch(34.4% 0.134 276.8)
- #443800
#443800
oklch(34.3% 0.071 95.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 and gradients that use #2B2B7C
These curated palettes and gradients contain exactly #2B2B7C. Open one to see the full color scheme around it.
Gradients
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Blue #191970 ΔE 0.058
- Marine Blue #01386A ΔE 0.059
- Marine #042E60 ΔE 0.065
- Twilight Blue #0A437A ΔE 0.067
- Royal #0C1793 ΔE 0.069
- Dark Slate Blue #483D8B ΔE 0.074
- Prussian Blue #1D3557 ΔE 0.075
- Cobalt #1E488F ΔE 0.080
Use #2B2B7C 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.