#2A266C

Closest named color: Midnight Blue (#191970). oklch(31.9% 0.118 279.9), rgb(42, 38, 108).

Aa

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

About this color

#2A266C is a dark, moderately saturated blue. In OKLCH its lightness is 32%, its chroma 0.118 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.044 away. White text reads best on it, at 13.18:1.

Hue familyBlues
Lightnessdark (32%)
Chromamoderately saturated (0.118)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.59:1
White text13.18:1

Values

HEX#2A266C
RGBrgb(42, 38, 108)
HSLhsl(243, 48%, 29%)
OKLCHoklch(31.9% 0.118 279.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 #2A266C 13.18:1 AAA Lc -102.4 Preferred for body text
Black text on #2A266C 1.59:1 Fails Lc 0.0 Not readable
#2A266C text on white 13.18:1 AAA Lc 99.2 Preferred for body text
#2A266C text on black 1.59: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 950.

  1. Step 50

    50

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E5E8FF

    oklch(93.6% 0.031 279.9)

  3. Step 200

    200

    #D1D6FF

    oklch(88.5% 0.057 279.7)

  4. Step 300

    300

    #B4BAFF

    oklch(80.9% 0.098 280.1)

  5. Step 400

    400

    #8F93FF

    oklch(70.7% 0.156 280)

  6. Step 500

    500

    #7673FF

    oklch(63.1% 0.202 279.9)

  7. Step 600

    600

    #624CFF

    oklch(55.6% 0.251 280)

  8. Step 700

    700

    #5514FB

    oklch(49.1% 0.287 280.1)

  9. Step 800

    800

    #441BCB

    oklch(42.7% 0.239 279.9)

  10. Step 900

    900

    #37239F

    oklch(37.6% 0.186 279.9)

  11. Step 950

    950 (this color)

    #2A266C

    oklch(31.9% 0.118 279.9)

Export this scale for Tailwind in the Tailwind colors tool

#2A266C 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)#00336E0.049
Deuteranopia (no green cones)#002D6B0.045
Tritanopia (no blue cones)#0337450.100
Achromatopsia (no color)#3030300.118

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A266C

    #2A266C

    oklch(31.9% 0.118 279.9)

  • #3B3300

    #3B3300

    oklch(32% 0.066 99.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A266C

    #2A266C

    oklch(31.9% 0.118 279.9)

  • #00345E

    #00345E

    oklch(32% 0.09 249.7)

  • #451B5E

    #451B5E

    oklch(32% 0.117 310.2)

Open the analogous palette in the generator

Split complementary

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

  • #2A266C

    #2A266C

    oklch(31.9% 0.118 279.9)

  • #492B00

    #492B00

    oklch(31.9% 0.07 69.3)

  • #243B00

    #243B00

    oklch(32.1% 0.086 129.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A266C

    #2A266C

    oklch(31.9% 0.118 279.9)

  • #5A1A00

    #5A1A00

    oklch(31.8% 0.1 39.9)

  • #003E25

    #003E25

    oklch(32.1% 0.074 159.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A266C

    #2A266C

    oklch(31.9% 0.118 279.9)

  • #600925

    #600925

    oklch(31.9% 0.118 9.7)

  • #3B3300

    #3B3300

    oklch(32% 0.066 99.7)

  • #003B39

    #003B39

    oklch(31.8% 0.055 191)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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