#2E256F

Closest named color: Midnight Blue (#191970). oklch(32.4% 0.123 282.6), rgb(46, 37, 111).

Aa

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

About this color

#2E256F is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.123 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.047 away. White text reads best on it, at 13.04:1.

Hue familyPurples
Lightnessdark (32%)
Chromamoderately saturated (0.123)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.61:1
White text13.04:1

Values

HEX#2E256F
RGBrgb(46, 37, 111)
HSLhsl(247, 50%, 29%)
OKLCHoklch(32.4% 0.123 282.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 #2E256F 13.04:1 AAA Lc -102.2 Preferred for body text
Black text on #2E256F 1.61:1 Fails Lc 0.0 Not readable
#2E256F text on white 13.04:1 AAA Lc 98.9 Preferred for body text
#2E256F text on black 1.61: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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E7E8FC

    oklch(93.6% 0.027 283.6)

  3. Step 200

    200

    #D3D6FB

    oklch(88.6% 0.051 281.6)

  4. Step 300

    300

    #B7BAFB

    oklch(81% 0.092 282.1)

  5. Step 400

    400

    #9493F9

    oklch(70.8% 0.147 282.4)

  6. Step 500

    500

    #7D74F6

    oklch(63.2% 0.188 282.7)

  7. Step 600

    600

    #6858E4

    oklch(55.6% 0.204 282.7)

  8. Step 700

    700

    #5747C7

    oklch(49.2% 0.19 282.5)

  9. Step 800

    800

    #473BA1

    oklch(42.7% 0.158 282.7)

  10. Step 900

    900 (this color)

    #2E256F

    oklch(32.4% 0.123 282.6)

  11. Step 950

    950

    #221F4B

    oklch(27% 0.079 282.8)

Export this scale for Tailwind in the Tailwind colors tool

#2E256F 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)#0033710.054
Deuteranopia (no green cones)#002E6E0.051
Tritanopia (no blue cones)#0E37460.103
Achromatopsia (no color)#3131310.123

Harmonies

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

Complementary

The opposite hue (180°).

  • #2E256F

    #2E256F

    oklch(32.4% 0.123 282.6)

  • #3B3500

    #3B3500

    oklch(32.5% 0.068 102.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2E256F

    #2E256F

    oklch(32.4% 0.123 282.6)

  • #003464

    #003464

    oklch(32.4% 0.098 252.5)

  • #49195F

    #49195F

    oklch(32.4% 0.123 313.1)

Open the analogous palette in the generator

Split complementary

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

  • #2E256F

    #2E256F

    oklch(32.4% 0.123 282.6)

  • #492D00

    #492D00

    oklch(32.4% 0.069 72.5)

  • #203D00

    #203D00

    oklch(32.4% 0.091 132.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2E256F

    #2E256F

    oklch(32.4% 0.123 282.6)

  • #5A1E00

    #5A1E00

    oklch(32.4% 0.096 42.8)

  • #003F29

    #003F29

    oklch(32.5% 0.071 162.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2E256F

    #2E256F

    oklch(32.4% 0.123 282.6)

  • #630722

    #630722

    oklch(32.4% 0.122 12.5)

  • #3B3500

    #3B3500

    oklch(32.5% 0.068 102.5)

  • #003C3B

    #003C3B

    oklch(32.2% 0.055 192.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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