#2E2976

Closest named color: Midnight Blue (#191970). oklch(33.7% 0.127 280), rgb(46, 41, 118).

Aa

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

About this color

#2E2976 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.127 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.055 away. White text reads best on it, at 12.38:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.127)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.69:1
White text12.38:1

Values

HEX#2E2976
RGBrgb(46, 41, 118)
HSLhsl(244, 48%, 31%)
OKLCHoklch(33.7% 0.127 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 #2E2976 12.38:1 AAA Lc -101.3 Preferred for body text
Black text on #2E2976 1.69:1 Fails Lc 0.0 Not readable
#2E2976 text on white 12.38:1 AAA Lc 97.8 Preferred for body text
#2E2976 text on black 1.69: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

    #E6E8FD

    oklch(93.6% 0.028 281.5)

  3. Step 200

    200

    #D2D6FC

    oklch(88.5% 0.052 280.5)

  4. Step 300

    300

    #B4BAFE

    oklch(80.9% 0.096 280.1)

  5. Step 400

    400

    #8F93FD

    oklch(70.6% 0.153 280.1)

  6. Step 500

    500

    #7774FB

    oklch(63.1% 0.196 280.2)

  7. Step 600

    600

    #6258EA

    oklch(55.6% 0.212 280)

  8. Step 700

    700

    #5247CB

    oklch(49.1% 0.196 280.1)

  9. Step 800

    800

    #433BA4

    oklch(42.6% 0.163 280.4)

  10. Step 900

    900 (this color)

    #2E2976

    oklch(33.7% 0.127 280)

  11. Step 950

    950

    #20204C

    oklch(27.1% 0.079 279.7)

Export this scale for Tailwind in the Tailwind colors tool

#2E2976 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)#0037780.051
Deuteranopia (no green cones)#0031740.048
Tritanopia (no blue cones)#013C4B0.109
Achromatopsia (no color)#3434340.128

Harmonies

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

Complementary

The opposite hue (180°).

  • #2E2976

    #2E2976

    oklch(33.7% 0.127 280)

  • #403800

    #403800

    oklch(33.9% 0.071 100.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2E2976

    #2E2976

    oklch(33.7% 0.127 280)

  • #003866

    #003866

    oklch(33.6% 0.096 250.4)

  • #4B1C67

    #4B1C67

    oklch(33.7% 0.128 310)

Open the analogous palette in the generator

Split complementary

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

  • #2E2976

    #2E2976

    oklch(33.7% 0.127 280)

  • #4F2F00

    #4F2F00

    oklch(33.7% 0.073 69.4)

  • #274000

    #274000

    oklch(33.8% 0.091 130.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2E2976

    #2E2976

    oklch(33.7% 0.127 280)

  • #621D00

    #621D00

    oklch(33.8% 0.106 39.9)

  • #004329

    #004329

    oklch(33.8% 0.077 159.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2E2976

    #2E2976

    oklch(33.7% 0.127 280)

  • #690828

    #690828

    oklch(33.8% 0.128 10)

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

Similar named colors

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

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