#2F7ED8

Closest named color: Water Blue (#0E87CC). oklch(59.1% 0.157 254.3), rgb(47, 126, 216).

Aa

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

About this color

#2F7ED8 is a medium-dark, vivid blue. In OKLCH its lightness is 59%, its chroma 0.157 and its hue 254°. Its hue sits on the cool side of the wheel. The nearest named color is Water Blue (#0E87CC), ΔE 0.035 away. Black text reads best on it, at 5.09:1.

Hue familyBlues
Lightnessmedium-dark (59%)
Chromavivid (0.157)
Temperaturecool
Nearest nameWater Blue (#0E87CC)
Black text5.09:1
White text4.12:1

Values

HEX#2F7ED8
RGBrgb(47, 126, 216)
HSLhsl(212, 68%, 52%)
OKLCHoklch(59.1% 0.157 254.3)

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 #2F7ED8 4.12:1 AA large text Lc -73.4 Content text, not long reading
Black text on #2F7ED8 5.09:1 AA Lc 36.2 Non-text elements, placeholder text
#2F7ED8 text on white 4.12:1 AA large text Lc 67.9 Content text, not long reading
#2F7ED8 text on black 5.09:1 AA Lc -33.8 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 600.

  1. Step 50

    50

    #F1F6FC

    oklch(97.1% 0.01 252.8)

  2. Step 100

    100

    #E1EBF8

    oklch(93.6% 0.021 254.9)

  3. Step 200

    200

    #C8DBF3

    oklch(88.5% 0.039 254.3)

  4. Step 300

    300

    #A2C4EE

    oklch(81% 0.07 253.9)

  5. Step 400

    400

    #6EA4E6

    oklch(70.8% 0.113 254.1)

  6. Step 500

    500

    #458BDE

    oklch(63.1% 0.144 254.3)

  7. Step 600

    600 (this color)

    #2F7ED8

    oklch(59.1% 0.157 254.3)

  8. Step 700

    700

    #1460B1

    oklch(49.1% 0.147 254.5)

  9. Step 800

    800

    #144F8F

    oklch(42.7% 0.121 254.1)

  10. Step 900

    900

    #194272

    oklch(37.7% 0.094 254.4)

  11. Step 950

    950

    #102743

    oklch(27% 0.06 254.6)

Export this scale for Tailwind in the Tailwind colors tool

#2F7ED8 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)#5185DC0.037
Deuteranopia (no green cones)#3376D60.021
Tritanopia (no blue cones)#0093A00.119
Achromatopsia (no color)#7D7D7D0.157

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F7ED8

    #2F7ED8

    oklch(59.1% 0.157 254.3)

  • #A97000

    #A97000

    oklch(59.1% 0.125 73.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F7ED8

    #2F7ED8

    oklch(59.1% 0.157 254.3)

  • #008BAF

    #008BAF

    oklch(59.2% 0.112 224.4)

  • #756CD6

    #756CD6

    oklch(59.1% 0.157 284.3)

Open the analogous palette in the generator

Split complementary

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

  • #2F7ED8

    #2F7ED8

    oklch(59.1% 0.157 254.3)

  • #C7581C

    #C7581C

    oklch(59.2% 0.157 44.5)

  • #8A8000

    #8A8000

    oklch(59% 0.125 104.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F7ED8

    #2F7ED8

    oklch(59.1% 0.157 254.3)

  • #C94E60

    #C94E60

    oklch(59.2% 0.157 14.5)

  • #53911D

    #53911D

    oklch(59.2% 0.157 134.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F7ED8

    #2F7ED8

    oklch(59.1% 0.157 254.3)

  • #BB5194

    #BB5194

    oklch(59.1% 0.157 344.1)

  • #A97000

    #A97000

    oklch(59.1% 0.125 73.9)

  • #00946A

    #00946A

    oklch(59% 0.125 164.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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