#2F51A3

Closest named color: Dusk Blue (#26538D). oklch(45.6% 0.138 264.6), rgb(47, 81, 163).

Aa

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

About this color

#2F51A3 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 46%, its chroma 0.138 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk Blue (#26538D), ΔE 0.039 away. White text reads best on it, at 7.42:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromamoderately saturated (0.138)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.82:1
White text7.42:1

Values

HEX#2F51A3
RGBrgb(47, 81, 163)
HSLhsl(222, 55%, 41%)
OKLCHoklch(45.6% 0.138 264.6)

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 #2F51A3 7.42:1 AAA Lc -90.3 Preferred for body text
Black text on #2F51A3 2.82:1 Fails Lc 18.6 Dividers and decoration only
#2F51A3 text on white 7.42:1 AAA Lc 85.5 Fine for body text
#2F51A3 text on black 2.82:1 Fails Lc -16.6 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F2F6FD

    oklch(97.2% 0.01 261.8)

  2. Step 100

    100

    #E2EAFA

    oklch(93.6% 0.023 264.5)

  3. Step 200

    200

    #CAD9F8

    oklch(88.4% 0.046 264.9)

  4. Step 300

    300

    #A7C0F6

    oklch(80.8% 0.082 265.3)

  5. Step 400

    400

    #789EF1

    oklch(70.6% 0.129 264.6)

  6. Step 500

    500

    #5683EC

    oklch(63% 0.165 264.7)

  7. Step 600

    600

    #3D6ADB

    oklch(55.6% 0.18 264.8)

  8. Step 700

    700

    #2F58BE

    oklch(49.1% 0.167 264.5)

  9. Step 800

    800 (this color)

    #2F51A3

    oklch(45.6% 0.138 264.6)

  10. Step 900

    900

    #243E7A

    oklch(37.8% 0.107 264.3)

  11. Step 950

    950

    #152548

    oklch(27.1% 0.069 263.9)

Export this scale for Tailwind in the Tailwind colors tool

#2F51A3 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)#225BA60.027
Deuteranopia (no green cones)#0050A10.029
Tritanopia (no blue cones)#0064720.111
Achromatopsia (no color)#5555550.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F51A3

    #2F51A3

    oklch(45.6% 0.138 264.6)

  • #6F5200

    #6F5200

    oklch(45.7% 0.094 84.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F51A3

    #2F51A3

    oklch(45.6% 0.138 264.6)

  • #005E84

    #005E84

    oklch(45.5% 0.096 234.8)

  • #5E429B

    #5E429B

    oklch(45.6% 0.139 294.8)

Open the analogous palette in the generator

Split complementary

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

  • #2F51A3

    #2F51A3

    oklch(45.6% 0.138 264.6)

  • #854200

    #854200

    oklch(45.6% 0.113 54.9)

  • #565D00

    #565D00

    oklch(45.6% 0.103 114.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F51A3

    #2F51A3

    oklch(45.6% 0.138 264.6)

  • #952E2D

    #952E2D

    oklch(45.7% 0.138 24.9)

  • #0D691B

    #0D691B

    oklch(45.5% 0.138 144.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F51A3

    #2F51A3

    oklch(45.6% 0.138 264.6)

  • #8E2D5B

    #8E2D5B

    oklch(45.6% 0.139 354.8)

  • #6F5200

    #6F5200

    oklch(45.7% 0.094 84.9)

  • #006654

    #006654

    oklch(45.6% 0.086 175)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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