#2E317C

Closest named color: Twilight Blue (#0A437A). oklch(35.8% 0.125 276.3), rgb(46, 49, 124).

Aa

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

About this color

#2E317C is a dark, moderately saturated blue. In OKLCH its lightness is 36%, its chroma 0.125 and its hue 276°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight Blue (#0A437A), ΔE 0.055 away. White text reads best on it, at 11.37:1.

Hue familyBlues
Lightnessdark (36%)
Chromamoderately saturated (0.125)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text1.84:1
White text11.37:1

Values

HEX#2E317C
RGBrgb(46, 49, 124)
HSLhsl(238, 46%, 33%)
OKLCHoklch(35.8% 0.125 276.3)

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 #2E317C 11.37:1 AAA Lc -99.6 Preferred for body text
Black text on #2E317C 1.84:1 Fails Lc 8.0 Not readable
#2E317C text on white 11.37:1 AAA Lc 95.9 Preferred for body text
#2E317C text on black 1.84: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

    #E5E9FD

    oklch(93.7% 0.027 276.8)

  3. Step 200

    200

    #CFD7FC

    oklch(88.5% 0.052 275.7)

  4. Step 300

    300

    #B0BCFD

    oklch(80.9% 0.093 276)

  5. Step 400

    400

    #8996FC

    oklch(70.7% 0.149 276.4)

  6. Step 500

    500

    #6E78FA

    oklch(63.1% 0.191 276.2)

  7. Step 600

    600

    #595CE9

    oklch(55.5% 0.208 276.3)

  8. Step 700

    700

    #4A4BCB

    oklch(49.2% 0.193 276.3)

  9. Step 800

    800

    #3C3EA4

    oklch(42.7% 0.161 276.3)

  10. Step 900

    900 (this color)

    #2E317C

    oklch(35.8% 0.125 276.3)

  11. Step 950

    950

    #1D214C

    oklch(27.1% 0.078 275.8)

Export this scale for Tailwind in the Tailwind colors tool

#2E317C 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)#003D7F0.046
Deuteranopia (no green cones)#00377A0.042
Tritanopia (no blue cones)#0043510.107
Achromatopsia (no color)#3A3A3A0.125

Harmonies

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

Complementary

The opposite hue (180°).

  • #2E317C

    #2E317C

    oklch(35.8% 0.125 276.3)

  • #483C00

    #483C00

    oklch(35.8% 0.074 96.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2E317C

    #2E317C

    oklch(35.8% 0.125 276.3)

  • #003F6A

    #003F6A

    oklch(35.7% 0.093 246.7)

  • #4D256F

    #4D256F

    oklch(35.8% 0.125 305.9)

Open the analogous palette in the generator

Split complementary

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

  • #2E317C

    #2E317C

    oklch(35.8% 0.125 276.3)

  • #583300

    #583300

    oklch(35.9% 0.079 66.8)

  • #304400

    #304400

    oklch(35.6% 0.091 126.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2E317C

    #2E317C

    oklch(35.8% 0.125 276.3)

  • #6E1A00

    #6E1A00

    oklch(35.7% 0.122 36.1)

  • #004929

    #004929

    oklch(35.7% 0.085 156.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2E317C

    #2E317C

    oklch(35.8% 0.125 276.3)

  • #6E1332

    #6E1332

    oklch(35.9% 0.125 6.4)

  • #483C00

    #483C00

    oklch(35.8% 0.074 96.4)

  • #004742

    #004742

    oklch(35.8% 0.063 186.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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