#2A7FE5

Closest named color: Clear Blue (#247AFD). oklch(60% 0.174 255.6), rgb(42, 127, 229).

Aa

Black text reads best on this color (5.26:1).

About this color

#2A7FE5 is a medium-dark, vivid blue. In OKLCH its lightness is 60%, its chroma 0.174 and its hue 256°. Its hue sits on the cool side of the wheel. The nearest named color is Clear Blue (#247AFD), ΔE 0.040 away. Black text reads best on it, at 5.26:1.

Hue familyBlues
Lightnessmedium-dark (60%)
Chromavivid (0.174)
Temperaturecool
Nearest nameClear Blue (#247AFD)
Black text5.26:1
White text3.98:1

Values

HEX#2A7FE5
RGBrgb(42, 127, 229)
HSLhsl(213, 78%, 53%)
OKLCHoklch(60% 0.174 255.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 #2A7FE5 3.98:1 AA large text Lc -72.2 Content text, not long reading
Black text on #2A7FE5 5.26:1 AA Lc 37.4 Non-text elements, placeholder text
#2A7FE5 text on white 3.98:1 AA large text Lc 66.7 Content text, not long reading
#2A7FE5 text on black 5.26:1 AA Lc -35.0 Non-text elements, placeholder text

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

  1. Step 50

    50

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #DFEBFB

    oklch(93.6% 0.025 255.6)

  3. Step 200

    200

    #C5DBF9

    oklch(88.5% 0.048 256.2)

  4. Step 300

    300

    #9CC3F7

    oklch(80.8% 0.085 255.8)

  5. Step 400

    400

    #64A3F4

    oklch(70.8% 0.136 255.4)

  6. Step 500

    500 (this color)

    #2A7FE5

    oklch(60% 0.174 255.6)

  7. Step 600

    600

    #0070DD

    oklch(55.6% 0.187 255.6)

  8. Step 700

    700

    #005EBB

    oklch(49.1% 0.165 255.5)

  9. Step 800

    800

    #004C9B

    oklch(42.6% 0.144 255.8)

  10. Step 900

    900

    #0E407C

    oklch(37.6% 0.114 256)

  11. Step 950

    950

    #0B2649

    oklch(27% 0.073 256.3)

Export this scale for Tailwind in the Tailwind colors tool

#2A7FE5 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)#4988E90.036
Deuteranopia (no green cones)#1D78E30.021
Tritanopia (no blue cones)#0097A70.130
Achromatopsia (no color)#7F7F7F0.174

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A7FE5

    #2A7FE5

    oklch(60% 0.174 255.6)

  • #AB7400

    #AB7400

    oklch(60.1% 0.126 75.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A7FE5

    #2A7FE5

    oklch(60% 0.174 255.6)

  • #008DB4

    #008DB4

    oklch(59.9% 0.115 226.1)

  • #7A6BE2

    #7A6BE2

    oklch(60.1% 0.174 285.6)

Open the analogous palette in the generator

Split complementary

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

  • #2A7FE5

    #2A7FE5

    oklch(60% 0.174 255.6)

  • #CE5600

    #CE5600

    oklch(59.9% 0.17 45.5)

  • #8B8400

    #8B8400

    oklch(60% 0.128 105.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A7FE5

    #2A7FE5

    oklch(60% 0.174 255.6)

  • #D3495D

    #D3495D

    oklch(60.1% 0.173 15.6)

  • #4B960A

    #4B960A

    oklch(60.1% 0.174 135.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A7FE5

    #2A7FE5

    oklch(60% 0.174 255.6)

  • #C54C97

    #C54C97

    oklch(60.1% 0.174 345.4)

  • #AB7400

    #AB7400

    oklch(60.1% 0.126 75.9)

  • #00976E

    #00976E

    oklch(60% 0.125 165.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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