#2F3166

Closest named color: Prussian Blue (#1D3557). oklch(34.1% 0.091 278.8), rgb(47, 49, 102).

Aa

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

About this color

#2F3166 is a dark, moderately saturated blue. In OKLCH its lightness is 34%, its chroma 0.091 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.040 away. White text reads best on it, at 11.98:1.

Hue familyBlues
Lightnessdark (34%)
Chromamoderately saturated (0.091)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.75:1
White text11.98:1

Values

HEX#2F3166
RGBrgb(47, 49, 102)
HSLhsl(238, 37%, 29%)
OKLCHoklch(34.1% 0.091 278.8)

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 #2F3166 11.98:1 AAA Lc -100.8 Preferred for body text
Black text on #2F3166 1.75:1 Fails Lc 0.0 Not readable
#2F3166 text on white 11.98:1 AAA Lc 97.3 Preferred for body text
#2F3166 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

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E7E9F7

    oklch(93.7% 0.019 279.5)

  3. Step 200

    200

    #D3D7F3

    oklch(88.5% 0.039 279.1)

  4. Step 300

    300

    #B6BDED

    oklch(80.9% 0.068 278.3)

  5. Step 400

    400

    #9299E4

    oklch(70.7% 0.11 279.1)

  6. Step 500

    500

    #787EDC

    oklch(63.1% 0.14 278.8)

  7. Step 600

    600

    #6266C9

    oklch(55.6% 0.15 278.6)

  8. Step 700

    700

    #5254AE

    oklch(49.2% 0.14 278.9)

  9. Step 800

    800

    #43458D

    oklch(42.7% 0.117 279)

  10. Step 900

    900 (this color)

    #2F3166

    oklch(34.1% 0.091 278.8)

  11. Step 950

    950

    #212342

    oklch(27.1% 0.057 279.1)

Export this scale for Tailwind in the Tailwind colors tool

#2F3166 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)#1939680.033
Deuteranopia (no green cones)#1334650.035
Tritanopia (no blue cones)#193D460.081
Achromatopsia (no color)#3737370.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F3166

    #2F3166

    oklch(34.1% 0.091 278.8)

  • #423800

    #423800

    oklch(34.1% 0.07 98)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F3166

    #2F3166

    oklch(34.1% 0.091 278.8)

  • #033A65

    #033A65

    oklch(34.1% 0.092 249)

  • #46295C

    #46295C

    oklch(34.2% 0.091 308.6)

Open the analogous palette in the generator

Split complementary

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

  • #2F3166

    #2F3166

    oklch(34.1% 0.091 278.8)

  • #513000

    #513000

    oklch(34.2% 0.075 68.9)

  • #294000

    #294000

    oklch(33.9% 0.09 128.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F3166

    #2F3166

    oklch(34.1% 0.091 278.8)

  • #5E240F

    #5E240F

    oklch(34.2% 0.091 39.4)

  • #004429

    #004429

    oklch(34.1% 0.078 159.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F3166

    #2F3166

    oklch(34.1% 0.091 278.8)

  • #5E202E

    #5E202E

    oklch(34.2% 0.091 9.5)

  • #423800

    #423800

    oklch(34.1% 0.07 98)

  • #00423E

    #00423E

    oklch(34.2% 0.059 188)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2F3166 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.