#5F7BE4

Closest named color: Cornflower (#6A79F7). oklch(61.3% 0.161 269.9), rgb(95, 123, 228).

Aa

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

About this color

#5F7BE4 is a medium-dark, vivid blue. In OKLCH its lightness is 61%, its chroma 0.161 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.033 away. Black text reads best on it, at 5.44:1.

Hue familyBlues
Lightnessmedium-dark (61%)
Chromavivid (0.161)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.44:1
White text3.86:1

Values

HEX#5F7BE4
RGBrgb(95, 123, 228)
HSLhsl(227, 71%, 63%)
OKLCHoklch(61.3% 0.161 269.9)

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 #5F7BE4 3.86:1 AA large text Lc -71.3 Content text, not long reading
Black text on #5F7BE4 5.44:1 AA Lc 38.2 Non-text elements, placeholder text
#5F7BE4 text on white 3.86:1 AA large text Lc 65.8 Content text, not long reading
#5F7BE4 text on black 5.44:1 AA Lc -35.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 500.

  1. Step 50

    50

    #F2F5FD

    oklch(97% 0.011 269.6)

  2. Step 100

    100

    #E4EAFA

    oklch(93.7% 0.023 269.4)

  3. Step 200

    200

    #CED8F7

    oklch(88.4% 0.044 271.3)

  4. Step 300

    300

    #ACBFF5

    oklch(80.9% 0.079 269.5)

  5. Step 400

    400

    #829CEF

    oklch(70.7% 0.125 269.8)

  6. Step 500

    500 (this color)

    #5F7BE4

    oklch(61.3% 0.161 269.9)

  7. Step 600

    600

    #4D67D8

    oklch(55.5% 0.175 270.1)

  8. Step 700

    700

    #3E55BC

    oklch(49.1% 0.164 269.9)

  9. Step 800

    800

    #334698

    oklch(42.7% 0.136 269.9)

  10. Step 900

    900

    #2C3C79

    oklch(37.7% 0.105 269.7)

  11. Step 950

    950

    #1A2447

    oklch(27.1% 0.066 269.6)

Export this scale for Tailwind in the Tailwind colors tool

#5F7BE4 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)#4988E80.037
Deuteranopia (no green cones)#357CE20.040
Tritanopia (no blue cones)#0093A40.143
Achromatopsia (no color)#8282820.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F7BE4

    #5F7BE4

    oklch(61.3% 0.161 269.9)

  • #A17F00

    #A17F00

    oklch(61.2% 0.125 89.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F7BE4

    #5F7BE4

    oklch(61.3% 0.161 269.9)

  • #008DCF

    #008DCF

    oklch(61.3% 0.14 239.9)

  • #9469D5

    #9469D5

    oklch(61.3% 0.161 300.1)

Open the analogous palette in the generator

Split complementary

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

  • #5F7BE4

    #5F7BE4

    oklch(61.3% 0.161 269.9)

  • #C16B00

    #C16B00

    oklch(61.3% 0.144 59.8)

  • #7A9000

    #7A9000

    oklch(61.4% 0.146 119.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F7BE4

    #5F7BE4

    oklch(61.3% 0.161 269.9)

  • #D35646

    #D35646

    oklch(61.2% 0.161 29.8)

  • #1A9E4B

    #1A9E4B

    oklch(61.4% 0.162 149.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F7BE4

    #5F7BE4

    oklch(61.3% 0.161 269.9)

  • #CE5380

    #CE5380

    oklch(61.4% 0.161 0.2)

  • #A17F00

    #A17F00

    oklch(61.2% 0.125 89.8)

  • #009986

    #009986

    oklch(61.2% 0.111 179.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5F7BE4 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.