#30304C
Closest named color: Space Cadet (#2B2D42). oklch(32.3% 0.049 283.3), rgb(48, 48, 76).
Aa
White text reads best on this color (12.70:1).
About this color
#30304C is a dark, muted purple. In OKLCH its lightness is 32%, its chroma 0.049 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.021 away. White text reads best on it, at 12.70:1.
| Hue family | Purples |
| Lightness | dark (32%) |
| Chroma | muted (0.049) |
| Temperature | cool |
| Nearest name | Space Cadet (#2B2D42) |
| Black text | 1.65:1 |
| White text | 12.70:1 |
Values
| HEX | #30304C |
| RGB | rgb(48, 48, 76) |
| HSL | hsl(240, 23%, 24%) |
| OKLCH | oklch(32.3% 0.049 283.3) |
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 #30304C | 12.70:1 | AAA | Lc -102.1 | Preferred for body text |
| Black text on #30304C | 1.65:1 | Fails | Lc 0.0 | Not readable |
| #30304C text on white | 12.70:1 | AAA | Lc 98.7 | Preferred for body text |
| #30304C text on black | 1.65: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
#F4F5FB
oklch(97.1% 0.008 278.6)
-
Step 100
100
#E8E9F5
oklch(93.7% 0.016 282.3)
-
Step 200
200
#D6D7EF
oklch(88.6% 0.033 283.8)
-
Step 300
300
#BBBCE6
oklch(80.8% 0.059 283.9)
-
Step 400
400
#9899D9
oklch(70.6% 0.093 283.1)
-
Step 500
500
#807FCF
oklch(63.1% 0.119 283)
-
Step 600
600
#6A67BC
oklch(55.6% 0.129 282.9)
-
Step 700
700
#5955A2
oklch(49.1% 0.12 283.4)
-
Step 800
800
#484683
oklch(42.7% 0.099 282.8)
-
Step 900
900
#3C3B69
oklch(37.6% 0.078 283)
-
Step 950
950 (this color)
#30304C
oklch(32.3% 0.049 283.3)
#30304C 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) | #28344D | 0.017 |
| Deuteranopia (no green cones) | #26324B | 0.017 |
| Tritanopia (no blue cones) | #29353A | 0.043 |
| Achromatopsia (no color) | #333333 | 0.049 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #30304C
#30304C
oklch(32.3% 0.049 283.3)
- #383514
#383514
oklch(32.4% 0.05 104.1)
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 #30304C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Space Cadet #2B2D42 ΔE 0.021
- Gunmetal #293241 ΔE 0.026
- Prussian Blue #1D3557 ΔE 0.032
- Dark Blue Grey #1F3B4D ΔE 0.040
- Onyx #343A40 ΔE 0.045
- Midnight Green #073B4C ΔE 0.053
- Oxford Blue #1B263B ΔE 0.056
- Marine #042E60 ΔE 0.062
Use #30304C 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.