#2E2A78

Closest named color: Midnight Blue (#191970). oklch(34.1% 0.129 279.4), rgb(46, 42, 120).

Aa

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

About this color

#2E2A78 is a dark, moderately saturated blue. In OKLCH its lightness is 34%, its chroma 0.129 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.057 away. White text reads best on it, at 12.21:1.

Hue familyBlues
Lightnessdark (34%)
Chromamoderately saturated (0.129)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.71:1
White text12.21:1

Values

HEX#2E2A78
RGBrgb(46, 42, 120)
HSLhsl(243, 48%, 32%)
OKLCHoklch(34.1% 0.129 279.4)

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 #2E2A78 12.21:1 AAA Lc -101.0 Preferred for body text
Black text on #2E2A78 1.71:1 Fails Lc 0.0 Not readable
#2E2A78 text on white 12.21:1 AAA Lc 97.5 Preferred for body text
#2E2A78 text on black 1.71: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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E5E8FD

    oklch(93.5% 0.029 279.4)

  3. Step 200

    200

    #D1D6FD

    oklch(88.5% 0.054 279.5)

  4. Step 300

    300

    #B3BAFE

    oklch(80.8% 0.096 279.5)

  5. Step 400

    400

    #8E94FE

    oklch(70.8% 0.153 279.3)

  6. Step 500

    500

    #7574FC

    oklch(63% 0.197 279.4)

  7. Step 600

    600

    #6058EB

    oklch(55.5% 0.214 279.3)

  8. Step 700

    700

    #5047CD

    oklch(49.1% 0.199 279.1)

  9. Step 800

    800

    #413BA6

    oklch(42.7% 0.166 279.2)

  10. Step 900

    900 (this color)

    #2E2A78

    oklch(34.1% 0.129 279.4)

  11. Step 950

    950

    #1F204D

    oklch(27.1% 0.081 278.5)

Export this scale for Tailwind in the Tailwind colors tool

#2E2A78 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)#00387B0.051
Deuteranopia (no green cones)#0032760.047
Tritanopia (no blue cones)#003D4C0.110
Achromatopsia (no color)#3535350.129

Harmonies

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

Complementary

The opposite hue (180°).

  • #2E2A78

    #2E2A78

    oklch(34.1% 0.129 279.4)

  • #413800

    #413800

    oklch(34% 0.07 99.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2E2A78

    #2E2A78

    oklch(34.1% 0.129 279.4)

  • #003A67

    #003A67

    oklch(34.2% 0.095 249.3)

  • #4C1D69

    #4C1D69

    oklch(34.1% 0.129 309.5)

Open the analogous palette in the generator

Split complementary

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

  • #2E2A78

    #2E2A78

    oklch(34.1% 0.129 279.4)

  • #503000

    #503000

    oklch(34.1% 0.074 69.9)

  • #294100

    #294100

    oklch(34.2% 0.091 129.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2E2A78

    #2E2A78

    oklch(34.1% 0.129 279.4)

  • #641D00

    #641D00

    oklch(34.1% 0.108 39.4)

  • #004429

    #004429

    oklch(34.1% 0.078 159.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2E2A78

    #2E2A78

    oklch(34.1% 0.129 279.4)

  • #6A0829

    #6A0829

    oklch(34.1% 0.129 9.6)

  • #413800

    #413800

    oklch(34% 0.07 99.2)

  • #00423F

    #00423F

    oklch(34.2% 0.059 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 #2E2A78, closest first.

Similar named colors

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

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