#303162

Closest named color: Prussian Blue (#1D3557). oklch(33.9% 0.084 280), rgb(48, 49, 98).

Aa

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

About this color

#303162 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.084 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.036 away. White text reads best on it, at 12.05:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.084)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.74:1
White text12.05:1

Values

HEX#303162
RGBrgb(48, 49, 98)
HSLhsl(239, 34%, 29%)
OKLCHoklch(33.9% 0.084 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 #303162 12.05:1 AAA Lc -101.0 Preferred for body text
Black text on #303162 1.74:1 Fails Lc 0.0 Not readable
#303162 text on white 12.05:1 AAA Lc 97.4 Preferred for body text
#303162 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.

  1. Step 50

    50

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E7E9F6

    oklch(93.6% 0.018 279.1)

  3. Step 200

    200

    #D4D7F1

    oklch(88.5% 0.036 280.4)

  4. Step 300

    300

    #B8BDEA

    oklch(81% 0.064 279.9)

  5. Step 400

    400

    #9499DF

    oklch(70.6% 0.102 280.3)

  6. Step 500

    500

    #7B7FD6

    oklch(63.1% 0.13 280)

  7. Step 600

    600

    #6567C3

    oklch(55.7% 0.14 279.9)

  8. Step 700

    700

    #5455A8

    oklch(49.1% 0.13 280)

  9. Step 800

    800

    #454688

    oklch(42.7% 0.107 280.2)

  10. Step 900

    900 (this color)

    #303162

    oklch(33.9% 0.084 280)

  11. Step 950

    950

    #212340

    oklch(27% 0.054 279.2)

Export this scale for Tailwind in the Tailwind colors tool

#303162 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)#1C38640.031
Deuteranopia (no green cones)#1934610.031
Tritanopia (no blue cones)#1E3B440.073
Achromatopsia (no color)#3636360.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #303162

    #303162

    oklch(33.9% 0.084 280)

  • #403800

    #403800

    oklch(33.9% 0.071 100.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #303162

    #303162

    oklch(33.9% 0.084 280)

  • #0D3961

    #0D3961

    oklch(33.8% 0.084 250.3)

  • #452958

    #452958

    oklch(33.8% 0.085 310.1)

Open the analogous palette in the generator

Split complementary

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

  • #303162

    #303162

    oklch(33.9% 0.084 280)

  • #4F3000

    #4F3000

    oklch(33.9% 0.073 70.9)

  • #294007

    #294007

    oklch(34% 0.085 129.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #303162

    #303162

    oklch(33.9% 0.084 280)

  • #5B2512

    #5B2512

    oklch(33.9% 0.085 39.3)

  • #00432A

    #00432A

    oklch(33.8% 0.076 160.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #303162

    #303162

    oklch(33.9% 0.084 280)

  • #5B222E

    #5B222E

    oklch(34% 0.084 9.7)

  • #403800

    #403800

    oklch(33.9% 0.071 100.4)

  • #00413E

    #00413E

    oklch(33.9% 0.059 189.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #303162 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.