#3171F0

Closest named color: Cerulean Blue (#056EEE). oklch(58.1% 0.203 262.1), rgb(49, 113, 240).

Aa

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

About this color

#3171F0 is a medium-dark, vivid blue. In OKLCH its lightness is 58%, its chroma 0.203 and its hue 262°. Its hue sits on the cool side of the wheel. The nearest named color is Cerulean Blue (#056EEE), ΔE 0.022 away. Black text reads best on it, at 4.75:1.

Hue familyBlues
Lightnessmedium-dark (58%)
Chromavivid (0.203)
Temperaturecool
Nearest nameCerulean Blue (#056EEE)
Black text4.75:1
White text4.42:1

Values

HEX#3171F0
RGBrgb(49, 113, 240)
HSLhsl(220, 86%, 57%)
OKLCHoklch(58.1% 0.203 262.1)

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 #3171F0 4.42:1 AA large text Lc -75.6 Fine for body text
Black text on #3171F0 4.75:1 AA Lc 34.0 Non-text elements, placeholder text
#3171F0 text on white 4.42:1 AA large text Lc 70.1 Content text, not long reading
#3171F0 text on black 4.75:1 AA Lc -31.6 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

    #F1F6FE

    oklch(97.2% 0.012 259.8)

  2. Step 100

    100

    #E0EAFC

    oklch(93.5% 0.027 262.3)

  3. Step 200

    200

    #C7DAFB

    oklch(88.5% 0.05 261.5)

  4. Step 300

    300

    #A1C1FC

    oklch(80.9% 0.091 262.4)

  5. Step 400

    400

    #6D9FFB

    oklch(70.8% 0.146 261.8)

  6. Step 500

    500

    #4783F8

    oklch(63.1% 0.186 262.1)

  7. Step 600

    600 (this color)

    #3171F0

    oklch(58.1% 0.203 262.1)

  8. Step 700

    700

    #1D56C9

    oklch(49% 0.189 262.2)

  9. Step 800

    800

    #1A47A3

    oklch(42.7% 0.157 262.3)

  10. Step 900

    900

    #1B3D81

    oklch(37.7% 0.122 262.3)

  11. Step 950

    950

    #10244B

    oklch(26.8% 0.077 262.1)

Export this scale for Tailwind in the Tailwind colors tool

#3171F0 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)#0081F40.040
Deuteranopia (no green cones)#0070EE0.020
Tritanopia (no blue cones)#0090A60.156
Achromatopsia (no color)#7878780.203

Harmonies

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

Complementary

The opposite hue (180°).

  • #3171F0

    #3171F0

    oklch(58.1% 0.203 262.1)

  • #9D7200

    #9D7200

    oklch(58% 0.119 82.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #3171F0

    #3171F0

    oklch(58.1% 0.203 262.1)

  • #0086B4

    #0086B4

    oklch(58.2% 0.118 231.5)

  • #8259E6

    #8259E6

    oklch(58.1% 0.204 292.3)

Open the analogous palette in the generator

Split complementary

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

  • #3171F0

    #3171F0

    oklch(58.1% 0.203 262.1)

  • #BD5B00

    #BD5B00

    oklch(58.1% 0.15 51.8)

  • #7D8100

    #7D8100

    oklch(58% 0.128 111.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #3171F0

    #3171F0

    oklch(58.1% 0.203 262.1)

  • #D8313F

    #D8313F

    oklch(58% 0.202 22.2)

  • #0D9500

    #0D9500

    oklch(58.1% 0.196 142.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #3171F0

    #3171F0

    oklch(58.1% 0.203 262.1)

  • #CC3387

    #CC3387

    oklch(58% 0.202 351.9)

  • #9D7200

    #9D7200

    oklch(58% 0.119 82.2)

  • #009073

    #009073

    oklch(58.2% 0.113 171.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #3171F0 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.