#2F2F71

Closest named color: Marine Blue (#01386A). oklch(34.5% 0.111 278.9), rgb(47, 47, 113).

Aa

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

About this color

#2F2F71 is a dark, moderately saturated blue. In OKLCH its lightness is 35%, its chroma 0.111 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.050 away. White text reads best on it, at 11.89:1.

Hue familyBlues
Lightnessdark (35%)
Chromamoderately saturated (0.111)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.76:1
White text11.89:1

Values

HEX#2F2F71
RGBrgb(47, 47, 113)
HSLhsl(240, 41%, 31%)
OKLCHoklch(34.5% 0.111 278.9)

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 #2F2F71 11.89:1 AAA Lc -100.6 Preferred for body text
Black text on #2F2F71 1.76:1 Fails Lc 0.0 Not readable
#2F2F71 text on white 11.89:1 AAA Lc 97.0 Preferred for body text
#2F2F71 text on black 1.76: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

    #E6E9FA

    oklch(93.7% 0.023 277.9)

  3. Step 200

    200

    #D2D7F8

    oklch(88.6% 0.046 278.6)

  4. Step 300

    300

    #B4BCF6

    oklch(80.9% 0.082 278.3)

  5. Step 400

    400

    #8F97F2

    oklch(70.8% 0.133 278.6)

  6. Step 500

    500

    #767AED

    oklch(63.2% 0.169 278.9)

  7. Step 600

    600

    #605FDC

    oklch(55.5% 0.186 278.8)

  8. Step 700

    700

    #504EBF

    oklch(49.2% 0.172 278.8)

  9. Step 800

    800

    #41419A

    oklch(42.8% 0.142 278.6)

  10. Step 900

    900 (this color)

    #2F2F71

    oklch(34.5% 0.111 278.9)

  11. Step 950

    950

    #202148

    oklch(27% 0.071 279.4)

Export this scale for Tailwind in the Tailwind colors tool

#2F2F71 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)#013A730.048
Deuteranopia (no green cones)#0034700.046
Tritanopia (no blue cones)#0D3E4B0.096
Achromatopsia (no color)#3737370.111

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F2F71

    #2F2F71

    oklch(34.5% 0.111 278.9)

  • #433900

    #433900

    oklch(34.5% 0.071 98.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F2F71

    #2F2F71

    oklch(34.5% 0.111 278.9)

  • #003B68

    #003B68

    oklch(34.5% 0.095 249)

  • #4A2564

    #4A2564

    oklch(34.6% 0.11 308.8)

Open the analogous palette in the generator

Split complementary

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

  • #2F2F71

    #2F2F71

    oklch(34.5% 0.111 278.9)

  • #523100

    #523100

    oklch(34.6% 0.075 69.4)

  • #2A4200

    #2A4200

    oklch(34.6% 0.092 129.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F2F71

    #2F2F71

    oklch(34.5% 0.111 278.9)

  • #661D00

    #661D00

    oklch(34.5% 0.111 39)

  • #00452A

    #00452A

    oklch(34.4% 0.079 159.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F2F71

    #2F2F71

    oklch(34.5% 0.111 278.9)

  • #66182D

    #66182D

    oklch(34.6% 0.111 9.3)

  • #433900

    #433900

    oklch(34.5% 0.071 98.2)

  • #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 #2F2F71, closest first.

Similar named colors

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

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