#30287D

Closest named color: Midnight Blue (#191970). oklch(34.4% 0.138 280.5), rgb(48, 40, 125).

Aa

White text reads best on this color (12.17:1).

About this color

#30287D is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.138 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.059 away. White text reads best on it, at 12.17:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.138)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.72:1
White text12.17:1

Values

HEX#30287D
RGBrgb(48, 40, 125)
HSLhsl(246, 52%, 32%)
OKLCHoklch(34.4% 0.138 280.5)

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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #30287D 12.17:1 AAA Lc -100.9 Preferred for body text
Black text on #30287D 1.72:1 Fails Lc 0.0 Not readable
#30287D text on white 12.17:1 AAA Lc 97.3 Preferred for body text
#30287D text on black 1.72: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.

  1. Step 50

    50

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E6E8FE

    oklch(93.6% 0.03 281.7)

  3. Step 200

    200

    #D1D6FF

    oklch(88.5% 0.057 279.7)

  4. Step 300

    300

    #B4BAFF

    oklch(80.9% 0.098 280.1)

  5. Step 400

    400

    #9093FF

    oklch(70.8% 0.156 280.4)

  6. Step 500

    500

    #7772FF

    oklch(63% 0.203 280.4)

  7. Step 600

    600

    #6353F3

    oklch(55.6% 0.229 280.4)

  8. Step 700

    700

    #5341D4

    oklch(49.1% 0.214 280.6)

  9. Step 800

    800

    #4337AB

    oklch(42.6% 0.177 280.4)

  10. Step 900

    900 (this color)

    #30287D

    oklch(34.4% 0.138 280.5)

  11. Step 950

    950

    #201E4F

    oklch(26.9% 0.087 280.6)

Export this scale for Tailwind in the Tailwind colors tool

#30287D 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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0039800.056
Deuteranopia (no green cones)#00327B0.050
Tritanopia (no blue cones)#003E4E0.118
Achromatopsia (no color)#3636360.138

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #30287D

    #30287D

    oklch(34.4% 0.138 280.5)

  • #413900

    #413900

    oklch(34.2% 0.071 100.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #30287D

    #30287D

    oklch(34.4% 0.138 280.5)

  • #003A69

    #003A69

    oklch(34.4% 0.098 250.3)

  • #4F1A6C

    #4F1A6C

    oklch(34.4% 0.138 310.7)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #30287D

    #30287D

    oklch(34.4% 0.138 280.5)

  • #513100

    #513100

    oklch(34.4% 0.074 70.4)

  • #274200

    #274200

    oklch(34.4% 0.094 130.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #30287D

    #30287D

    oklch(34.4% 0.138 280.5)

  • #641F00

    #641F00

    oklch(34.4% 0.107 40.6)

  • #00452B

    #00452B

    oklch(34.5% 0.078 160.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #30287D

    #30287D

    oklch(34.4% 0.138 280.5)

  • #6E0027

    #6E0027

    oklch(34.4% 0.137 10.8)

  • #413900

    #413900

    oklch(34.2% 0.071 100.6)

  • #004240

    #004240

    oklch(34.2% 0.059 191.4)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #30287D, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #30287D 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.