#2A2A57

Closest named color: Prussian Blue (#1D3557). oklch(31% 0.079 280.8), rgb(42, 42, 87).

Aa

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

About this color

#2A2A57 is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.079 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.036 away. White text reads best on it, at 13.39:1.

Hue familyPurples
Lightnessdark (31%)
Chromamoderately saturated (0.079)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.56:1
White text13.39:1

Values

HEX#2A2A57
RGBrgb(42, 42, 87)
HSLhsl(240, 35%, 25%)
OKLCHoklch(31% 0.079 280.8)

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 #2A2A57 13.39:1 AAA Lc -102.9 Preferred for body text
Black text on #2A2A57 1.56:1 Fails Lc 0.0 Not readable
#2A2A57 text on white 13.39:1 AAA Lc 99.7 Preferred for body text
#2A2A57 text on black 1.56: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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E6E8FC

    oklch(93.5% 0.027 281.3)

  3. Step 200

    200

    #D2D6FC

    oklch(88.5% 0.052 280.5)

  4. Step 300

    300

    #B5BAFC

    oklch(80.9% 0.093 280.7)

  5. Step 400

    400

    #9193FB

    oklch(70.6% 0.15 281)

  6. Step 500

    500

    #7874F8

    oklch(63% 0.192 280.7)

  7. Step 600

    600

    #6459E7

    oklch(55.7% 0.207 280.8)

  8. Step 700

    700

    #5347C9

    oklch(49% 0.194 280.7)

  9. Step 800

    800

    #443CA3

    oklch(42.8% 0.16 280.7)

  10. Step 900

    900

    #383581

    oklch(37.8% 0.124 280.4)

  11. Step 950

    950 (this color)

    #2A2A57

    oklch(31% 0.079 280.8)

Export this scale for Tailwind in the Tailwind colors tool

#2A2A57 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)#1731590.031
Deuteranopia (no green cones)#132D560.031
Tritanopia (no blue cones)#1A343C0.069
Achromatopsia (no color)#2F2F2F0.079

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A2A57

    #2A2A57

    oklch(31% 0.079 280.8)

  • #383100

    #383100

    oklch(31.1% 0.065 100.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A2A57

    #2A2A57

    oklch(31% 0.079 280.8)

  • #0A3257

    #0A3257

    oklch(31.2% 0.079 250.8)

  • #3D234D

    #3D234D

    oklch(31% 0.079 311.2)

Open the analogous palette in the generator

Split complementary

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

  • #2A2A57

    #2A2A57

    oklch(31% 0.079 280.8)

  • #452900

    #452900

    oklch(30.9% 0.067 70.3)

  • #223805

    #223805

    oklch(31.1% 0.079 130.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A2A57

    #2A2A57

    oklch(31% 0.079 280.8)

  • #50200C

    #50200C

    oklch(31% 0.078 41.5)

  • #003B24

    #003B24

    oklch(31.1% 0.07 160.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A2A57

    #2A2A57

    oklch(31% 0.079 280.8)

  • #511C27

    #511C27

    oklch(31.1% 0.08 10.3)

  • #383100

    #383100

    oklch(31.1% 0.065 100.7)

  • #003937

    #003937

    oklch(31.1% 0.054 190.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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