#2A2F5F

Closest named color: Prussian Blue (#1D3557). oklch(32.7% 0.084 276.2), rgb(42, 47, 95).

Aa

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

About this color

#2A2F5F is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.084 and its hue 276°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.030 away. White text reads best on it, at 12.57:1.

Hue familyBlues
Lightnessdark (33%)
Chromamoderately saturated (0.084)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.67:1
White text12.57:1

Values

HEX#2A2F5F
RGBrgb(42, 47, 95)
HSLhsl(234, 39%, 27%)
OKLCHoklch(32.7% 0.084 276.2)

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 #2A2F5F 12.57:1 AAA Lc -101.8 Preferred for body text
Black text on #2A2F5F 1.67:1 Fails Lc 0.0 Not readable
#2A2F5F text on white 12.57:1 AAA Lc 98.4 Preferred for body text
#2A2F5F text on black 1.67: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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E6E9F6

    oklch(93.6% 0.018 275.6)

  3. Step 200

    200

    #D2D8F1

    oklch(88.5% 0.035 274.9)

  4. Step 300

    300

    #B5BEEA

    oklch(80.9% 0.063 275.9)

  5. Step 400

    400

    #909BDF

    oklch(70.7% 0.1 276.5)

  6. Step 500

    500

    #7581D6

    oklch(63.1% 0.128 276)

  7. Step 600

    600

    #5F69C4

    oklch(55.7% 0.14 276.1)

  8. Step 700

    700

    #4E57A9

    oklch(49.1% 0.13 275.8)

  9. Step 800

    800

    #404789

    oklch(42.6% 0.108 276.2)

  10. Step 900

    900 (this color)

    #2A2F5F

    oklch(32.7% 0.084 276.2)

  11. Step 950

    950

    #202440

    oklch(27.1% 0.052 276.2)

Export this scale for Tailwind in the Tailwind colors tool

#2A2F5F 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)#1936610.027
Deuteranopia (no green cones)#14315E0.028
Tritanopia (no blue cones)#1339420.073
Achromatopsia (no color)#3333330.084

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A2F5F

    #2A2F5F

    oklch(32.7% 0.084 276.2)

  • #3F3400

    #3F3400

    oklch(32.7% 0.067 96)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A2F5F

    #2A2F5F

    oklch(32.7% 0.084 276.2)

  • #01375D

    #01375D

    oklch(32.7% 0.085 246.7)

  • #402756

    #402756

    oklch(32.7% 0.085 306.9)

Open the analogous palette in the generator

Split complementary

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

  • #2A2F5F

    #2A2F5F

    oklch(32.7% 0.084 276.2)

  • #4D2C00

    #4D2C00

    oklch(32.8% 0.073 66.8)

  • #2A3C00

    #2A3C00

    oklch(32.8% 0.084 126.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A2F5F

    #2A2F5F

    oklch(32.7% 0.084 276.2)

  • #582213

    #582213

    oklch(32.9% 0.084 36.4)

  • #004023

    #004023

    oklch(32.7% 0.079 156.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A2F5F

    #2A2F5F

    oklch(32.7% 0.084 276.2)

  • #571F2E

    #571F2E

    oklch(32.8% 0.084 6.3)

  • #3F3400

    #3F3400

    oklch(32.7% 0.067 96)

  • #003E39

    #003E39

    oklch(32.7% 0.057 185.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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