#2C2A7A

Closest named color: Midnight Blue (#191970). oklch(34.1% 0.132 277.9), rgb(44, 42, 122).

Aa

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

About this color

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

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

Values

HEX#2C2A7A
RGBrgb(44, 42, 122)
HSLhsl(242, 49%, 32%)
OKLCHoklch(34.1% 0.132 277.9)

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

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E5E9FD

    oklch(93.7% 0.027 276.8)

  3. Step 200

    200

    #D0D6FE

    oklch(88.4% 0.055 278.5)

  4. Step 300

    300

    #B1BBFF

    oklch(80.9% 0.097 277.5)

  5. Step 400

    400

    #8B94FF

    oklch(70.6% 0.155 278)

  6. Step 500

    500

    #7175FF

    oklch(63.1% 0.201 277.7)

  7. Step 600

    600

    #5D58EF

    oklch(55.6% 0.22 278)

  8. Step 700

    700

    #4D46D0

    oklch(49% 0.205 277.9)

  9. Step 800

    800

    #3F3BA8

    oklch(42.7% 0.169 278.1)

  10. Step 900

    900 (this color)

    #2C2A7A

    oklch(34.1% 0.132 277.9)

  11. Step 950

    950

    #1E204E

    oklch(27.1% 0.083 277.4)

Export this scale for Tailwind in the Tailwind colors tool

#2C2A7A 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)#00397D0.050
Deuteranopia (no green cones)#0032780.044
Tritanopia (no blue cones)#003E4E0.110
Achromatopsia (no color)#3535350.133

Harmonies

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

Complementary

The opposite hue (180°).

  • #2C2A7A

    #2C2A7A

    oklch(34.1% 0.132 277.9)

  • #423800

    #423800

    oklch(34.1% 0.07 98)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2C2A7A

    #2C2A7A

    oklch(34.1% 0.132 277.9)

  • #003A65

    #003A65

    oklch(34.1% 0.092 248.3)

  • #4B1D6B

    #4B1D6B

    oklch(34.1% 0.131 307.9)

Open the analogous palette in the generator

Split complementary

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

  • #2C2A7A

    #2C2A7A

    oklch(34.1% 0.132 277.9)

  • #512F00

    #512F00

    oklch(34% 0.075 67.5)

  • #2B4000

    #2B4000

    oklch(34.1% 0.089 127.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2C2A7A

    #2C2A7A

    oklch(34.1% 0.132 277.9)

  • #651B00

    #651B00

    oklch(34.1% 0.111 38.1)

  • #004428

    #004428

    oklch(34.1% 0.079 158.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2C2A7A

    #2C2A7A

    oklch(34.1% 0.132 277.9)

  • #6B052B

    #6B052B

    oklch(34.1% 0.132 8)

  • #423800

    #423800

    oklch(34.1% 0.07 98)

  • #00423E

    #00423E

    oklch(34.2% 0.059 188)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #2C2A7A.

Similar named colors

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

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