#3157B5

Closest named color: Mid Blue (#276AB3). oklch(48.3% 0.156 264.6), rgb(49, 87, 181).

Aa

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

About this color

#3157B5 is a medium-dark, vivid blue. In OKLCH its lightness is 48%, its chroma 0.156 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Mid Blue (#276AB3), ΔE 0.051 away. White text reads best on it, at 6.64:1.

Hue familyBlues
Lightnessmedium-dark (48%)
Chromavivid (0.156)
Temperaturecool
Nearest nameMid Blue (#276AB3)
Black text3.16:1
White text6.64:1

Values

HEX#3157B5
RGBrgb(49, 87, 181)
HSLhsl(223, 57%, 45%)
OKLCHoklch(48.3% 0.156 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 #3157B5 6.64:1 AA Lc -87.5 Fine for body text
Black text on #3157B5 3.16:1 AA large text Lc 21.6 Dividers and decoration only
#3157B5 text on white 6.64:1 AA Lc 82.4 Fine for body text
#3157B5 text on black 3.16:1 AA large text Lc -19.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 700.

  1. Step 50

    50

    #F2F5FC

    oklch(97% 0.01 267.4)

  2. Step 100

    100

    #E3EAF9

    oklch(93.6% 0.022 265.8)

  3. Step 200

    200

    #CCD9F6

    oklch(88.5% 0.042 266.3)

  4. Step 300

    300

    #A9C1F2

    oklch(81% 0.074 264.4)

  5. Step 400

    400

    #7B9FEC

    oklch(70.8% 0.12 264.4)

  6. Step 500

    500

    #5A85E6

    oklch(63.2% 0.154 264.4)

  7. Step 600

    600

    #416CD4

    oklch(55.6% 0.167 264.6)

  8. Step 700

    700 (this color)

    #3157B5

    oklch(48.3% 0.156 264.6)

  9. Step 800

    800

    #2B4A95

    oklch(42.9% 0.129 264.6)

  10. Step 900

    900

    #263E76

    oklch(37.6% 0.1 264.6)

  11. Step 950

    950

    #172545

    oklch(27% 0.063 264.7)

Export this scale for Tailwind in the Tailwind colors tool

#3157B5 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)#1A63B80.032
Deuteranopia (no green cones)#0057B30.028
Tritanopia (no blue cones)#006E7D0.126
Achromatopsia (no color)#5C5C5C0.156

Harmonies

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

Complementary

The opposite hue (180°).

  • #3157B5

    #3157B5

    oklch(48.3% 0.156 264.6)

  • #785900

    #785900

    oklch(48.3% 0.099 85)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #3157B5

    #3157B5

    oklch(48.3% 0.156 264.6)

  • #00678F

    #00678F

    oklch(48.4% 0.101 234.1)

  • #6746AC

    #6746AC

    oklch(48.4% 0.156 294.8)

Open the analogous palette in the generator

Split complementary

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

  • #3157B5

    #3157B5

    oklch(48.3% 0.156 264.6)

  • #904800

    #904800

    oklch(48.3% 0.12 54.9)

  • #5E6500

    #5E6500

    oklch(48.4% 0.109 114.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #3157B5

    #3157B5

    oklch(48.3% 0.156 264.6)

  • #A42D2E

    #A42D2E

    oklch(48.2% 0.155 24.8)

  • #007319

    #007319

    oklch(48.3% 0.154 144.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #3157B5

    #3157B5

    oklch(48.3% 0.156 264.6)

  • #9D2D63

    #9D2D63

    oklch(48.4% 0.156 355)

  • #785900

    #785900

    oklch(48.3% 0.099 85)

  • #006F5B

    #006F5B

    oklch(48.3% 0.092 174.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #3157B5 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.