#2E3271

Closest named color: Marine Blue (#01386A). oklch(35.1% 0.107 276.6), rgb(46, 50, 113).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (35%)
Chromamoderately saturated (0.107)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.81:1
White text11.59:1

Values

HEX#2E3271
RGBrgb(46, 50, 113)
HSLhsl(236, 42%, 31%)
OKLCHoklch(35.1% 0.107 276.6)

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 #2E3271 11.59:1 AAA Lc -100.1 Preferred for body text
Black text on #2E3271 1.81:1 Fails Lc 7.4 Not readable
#2E3271 text on white 11.59:1 AAA Lc 96.4 Preferred for body text
#2E3271 text on black 1.81: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

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E5E9FA

    oklch(93.6% 0.023 275.4)

  3. Step 200

    200

    #D1D7F7

    oklch(88.5% 0.044 277.1)

  4. Step 300

    300

    #B3BDF5

    oklch(81% 0.08 276.6)

  5. Step 400

    400

    #8C98F0

    oklch(70.7% 0.129 276.7)

  6. Step 500

    500

    #727CEA

    oklch(63.1% 0.163 276.7)

  7. Step 600

    600

    #5C62D9

    oklch(55.6% 0.179 276.7)

  8. Step 700

    700

    #4C50BC

    oklch(49% 0.167 276.7)

  9. Step 800

    800

    #3E4398

    oklch(42.8% 0.137 276.4)

  10. Step 900

    900 (this color)

    #2E3271

    oklch(35.1% 0.107 276.6)

  11. Step 950

    950

    #1E2247

    oklch(27% 0.068 276.2)

Export this scale for Tailwind in the Tailwind colors tool

#2E3271 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)#0D3C730.040
Deuteranopia (no green cones)#0036700.043
Tritanopia (no blue cones)#08404C0.093
Achromatopsia (no color)#3939390.107

Harmonies

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

Complementary

The opposite hue (180°).

  • #2E3271

    #2E3271

    oklch(35.1% 0.107 276.6)

  • #463A00

    #463A00

    oklch(35.1% 0.072 96)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2E3271

    #2E3271

    oklch(35.1% 0.107 276.6)

  • #003D67

    #003D67

    oklch(35% 0.092 246.8)

  • #492866

    #492866

    oklch(35.1% 0.107 306.2)

Open the analogous palette in the generator

Split complementary

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

  • #2E3271

    #2E3271

    oklch(35.1% 0.107 276.6)

  • #553100

    #553100

    oklch(35% 0.078 66.7)

  • #2E4300

    #2E4300

    oklch(35.2% 0.091 127)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2E3271

    #2E3271

    oklch(35.1% 0.107 276.6)

  • #67200A

    #67200A

    oklch(35.2% 0.107 36.7)

  • #004728

    #004728

    oklch(35% 0.084 156.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2E3271

    #2E3271

    oklch(35.1% 0.107 276.6)

  • #661B31

    #661B31

    oklch(35.1% 0.108 7)

  • #463A00

    #463A00

    oklch(35.1% 0.072 96)

  • #004540

    #004540

    oklch(35.1% 0.061 186.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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