#302E71

Closest named color: Marine Blue (#01386A). oklch(34.4% 0.112 280), rgb(48, 46, 113).

Aa

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

About this color

#302E71 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.112 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.053 away. White text reads best on it, at 11.96:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.112)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.75:1
White text11.96:1

Values

HEX#302E71
RGBrgb(48, 46, 113)
HSLhsl(242, 42%, 31%)
OKLCHoklch(34.4% 0.112 280)

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 #302E71 11.96:1 AAA Lc -100.7 Preferred for body text
Black text on #302E71 1.75:1 Fails Lc 0.0 Not readable
#302E71 text on white 11.96:1 AAA Lc 97.1 Preferred for body text
#302E71 text on black 1.75: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

    #F4F5FD

    oklch(97.2% 0.011 280.5)

  2. Step 100

    100

    #E6E8FA

    oklch(93.5% 0.024 280.9)

  3. Step 200

    200

    #D2D6F8

    oklch(88.4% 0.047 280.1)

  4. Step 300

    300

    #B5BBF7

    oklch(80.9% 0.085 279.9)

  5. Step 400

    400

    #9196F3

    oklch(70.8% 0.135 280)

  6. Step 500

    500

    #7878EE

    oklch(63% 0.173 280.2)

  7. Step 600

    600

    #635EDC

    oklch(55.6% 0.187 280.2)

  8. Step 700

    700

    #524DBF

    oklch(49.1% 0.173 279.9)

  9. Step 800

    800

    #43409B

    oklch(42.8% 0.144 279.9)

  10. Step 900

    900 (this color)

    #302E71

    oklch(34.4% 0.112 280)

  11. Step 950

    950

    #202148

    oklch(27% 0.071 279.4)

Export this scale for Tailwind in the Tailwind colors tool

#302E71 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)#0039730.050
Deuteranopia (no green cones)#0034700.048
Tritanopia (no blue cones)#113E4A0.098
Achromatopsia (no color)#3737370.113

Harmonies

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

Complementary

The opposite hue (180°).

  • #302E71

    #302E71

    oklch(34.4% 0.112 280)

  • #423900

    #423900

    oklch(34.4% 0.071 99.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #302E71

    #302E71

    oklch(34.4% 0.112 280)

  • #003A69

    #003A69

    oklch(34.4% 0.098 250.3)

  • #4B2363

    #4B2363

    oklch(34.4% 0.113 310.6)

Open the analogous palette in the generator

Split complementary

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

  • #302E71

    #302E71

    oklch(34.4% 0.112 280)

  • #513100

    #513100

    oklch(34.4% 0.074 70.4)

  • #284200

    #284200

    oklch(34.5% 0.093 130.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #302E71

    #302E71

    oklch(34.4% 0.112 280)

  • #651E00

    #651E00

    oklch(34.5% 0.109 39.8)

  • #00452B

    #00452B

    oklch(34.5% 0.078 160.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #302E71

    #302E71

    oklch(34.4% 0.112 280)

  • #66162B

    #66162B

    oklch(34.4% 0.113 10.2)

  • #423900

    #423900

    oklch(34.4% 0.071 99.4)

  • #004340

    #004340

    oklch(34.5% 0.06 189.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #302E71 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.