#30297F
Closest named color: Midnight Blue (#191970). oklch(34.7% 0.139 279.9), rgb(48, 41, 127).
Aa
White text reads best on this color (12.00:1).
About this color
#30297F is a dark, moderately saturated blue. In OKLCH its lightness is 35%, its chroma 0.139 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.062 away. White text reads best on it, at 12.00:1.
| Hue family | Blues |
| Lightness | dark (35%) |
| Chroma | moderately saturated (0.139) |
| Temperature | cool |
| Nearest name | Midnight Blue (#191970) |
| Black text | 1.74:1 |
| White text | 12.00:1 |
Values
| HEX | #30297F |
| RGB | rgb(48, 41, 127) |
| HSL | hsl(245, 51%, 33%) |
| OKLCH | oklch(34.7% 0.139 279.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 #30297F | 12.00:1 | AAA | Lc -100.6 | Preferred for body text |
| Black text on #30297F | 1.74:1 | Fails | Lc 0.0 | Not readable |
| #30297F text on white | 12.00:1 | AAA | Lc 97.0 | Preferred for body text |
| #30297F text on black | 1.74: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
#E5E8FE
oklch(93.5% 0.03 279.6)
-
Step 200
200
#D1D6FF
oklch(88.5% 0.057 279.7)
-
Step 300
300
#B4BAFF
oklch(80.9% 0.098 280.1)
-
Step 400
400
#8F93FF
oklch(70.7% 0.156 280)
-
Step 500
500
#7673FF
oklch(63.1% 0.202 279.9)
-
Step 600
600
#6252F5
oklch(55.6% 0.233 280.1)
-
Step 700
700
#5241D5
oklch(49.1% 0.215 280.1)
-
Step 800
800
#4237AC
oklch(42.6% 0.179 279.9)
-
Step 900
900 (this color)
#30297F
oklch(34.7% 0.139 279.9)
-
Step 950
950
#201E50
oklch(27% 0.089 280.4)
#30297F 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) | #003A82 | 0.055 |
| Deuteranopia (no green cones) | #00337D | 0.049 |
| Tritanopia (no blue cones) | #003F50 | 0.118 |
| Achromatopsia (no color) | #363636 | 0.140 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #30297F
#30297F
oklch(34.7% 0.139 279.9)
- #433A00
#433A00
oklch(34.7% 0.072 99.5)
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 #30297F, closest first.
No curated palette has a color within ΔE 0.04 of #30297F.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Blue #191970 ΔE 0.062
- Marine Blue #01386A ΔE 0.069
- Royal #0C1793 ΔE 0.070
- Dark Slate Blue #483D8B ΔE 0.070
- Indigo #4B0082 ΔE 0.072
- Twilight Blue #0A437A ΔE 0.074
- Marine #042E60 ΔE 0.075
- Blueberry #464196 ΔE 0.081
Use #30297F 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.