#1F77B1

Closest named color: Nice Blue (#107AB0). oklch(54.8% 0.12 243.3), rgb(31, 119, 177).

Aa

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

About this color

#1F77B1 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 55%, its chroma 0.120 and its hue 243°. Its hue sits on the cool side of the wheel. The nearest named color is Nice Blue (#107AB0), ΔE 0.010 away. White text reads best on it, at 4.84:1.

Hue familyBlues
Lightnessmedium-dark (55%)
Chromamoderately saturated (0.120)
Temperaturecool
Nearest nameNice Blue (#107AB0)
Black text4.33:1
White text4.84:1

Values

HEX#1F77B1
RGBrgb(31, 119, 177)
HSLhsl(204, 70%, 41%)
OKLCHoklch(54.8% 0.12 243.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 #1F77B1 4.84:1 AA Lc -78.6 Fine for body text
Black text on #1F77B1 4.33:1 AA large text Lc 30.9 Non-text elements, placeholder text
#1F77B1 text on white 4.84:1 AA Lc 73.2 Content text, not long reading
#1F77B1 text on black 4.33:1 AA large text Lc -28.5 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 600.

  1. Step 50

    50

    #F1F6FA

    oklch(97.1% 0.008 241.7)

  2. Step 100

    100

    #E1EBF4

    oklch(93.5% 0.016 245.1)

  3. Step 200

    200

    #C9DCEC

    oklch(88.5% 0.03 243.4)

  4. Step 300

    300

    #A3C5E1

    oklch(80.8% 0.054 243.3)

  5. Step 400

    400

    #70A7D3

    oklch(70.7% 0.087 243.6)

  6. Step 500

    500

    #4790C7

    oklch(63% 0.111 243.7)

  7. Step 600

    600 (this color)

    #1F77B1

    oklch(54.8% 0.12 243.3)

  8. Step 700

    700

    #13669B

    oklch(49.1% 0.112 243.6)

  9. Step 800

    800

    #15537D

    oklch(42.6% 0.092 243.6)

  10. Step 900

    900

    #1A4565

    oklch(37.7% 0.072 244.1)

  11. Step 950

    950

    #10293B

    oklch(27.1% 0.046 242.4)

Export this scale for Tailwind in the Tailwind colors tool

#1F77B1 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)#5C79B30.054
Deuteranopia (no green cones)#476CB00.040
Tritanopia (no blue cones)#00858C0.082
Achromatopsia (no color)#7171710.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F77B1

    #1F77B1

    oklch(54.8% 0.12 243.3)

  • #A15F0D

    #A15F0D

    oklch(54.8% 0.12 63.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F77B1

    #1F77B1

    oklch(54.8% 0.12 243.3)

  • #007F92

    #007F92

    oklch(54.8% 0.096 212.8)

  • #5B6AB6

    #5B6AB6

    oklch(54.8% 0.119 273.4)

Open the analogous palette in the generator

Split complementary

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

  • #1F77B1

    #1F77B1

    oklch(54.8% 0.12 243.3)

  • #AB5340

    #AB5340

    oklch(54.7% 0.12 33.5)

  • #876E00

    #876E00

    oklch(54.7% 0.112 93.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F77B1

    #1F77B1

    oklch(54.8% 0.12 243.3)

  • #A94F6A

    #A94F6A

    oklch(54.8% 0.121 3)

  • #637C1F

    #637C1F

    oklch(54.8% 0.12 123.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F77B1

    #1F77B1

    oklch(54.8% 0.12 243.3)

  • #9A548E

    #9A548E

    oklch(54.8% 0.12 333.7)

  • #A15F0D

    #A15F0D

    oklch(54.8% 0.12 63.4)

  • #29854E

    #29854E

    oklch(54.9% 0.121 153.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #1F77B1 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.