#5F7AF5

Closest named color: Cornflower (#6A79F7). oklch(62.2% 0.186 270.8), rgb(95, 122, 245).

Aa

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

About this color

#5F7AF5 is a medium-light, vivid blue. In OKLCH its lightness is 62%, its chroma 0.186 and its hue 271°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.014 away. Black text reads best on it, at 5.58:1.

Hue familyBlues
Lightnessmedium-light (62%)
Chromavivid (0.186)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.58:1
White text3.75:1

Values

HEX#5F7AF5
RGBrgb(95, 122, 245)
HSLhsl(229, 88%, 67%)
OKLCHoklch(62.2% 0.186 270.8)

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 #5F7AF5 3.75:1 AA large text Lc -70.3 Content text, not long reading
Black text on #5F7AF5 5.58:1 AA Lc 39.3 Non-text elements, placeholder text
#5F7AF5 text on white 3.75:1 AA large text Lc 64.8 Content text, not long reading
#5F7AF5 text on black 5.58:1 AA Lc -36.9 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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E3E9FC

    oklch(93.5% 0.027 271.9)

  3. Step 200

    200

    #CCD8FB

    oklch(88.4% 0.05 270.4)

  4. Step 300

    300

    #AABEFC

    oklch(80.9% 0.091 270.5)

  5. Step 400

    400

    #7F9AFB

    oklch(70.8% 0.145 270.6)

  6. Step 500

    500 (this color)

    #5F7AF5

    oklch(62.2% 0.186 270.8)

  7. Step 600

    600

    #4B62E7

    oklch(55.6% 0.202 270.9)

  8. Step 700

    700

    #3D50C9

    oklch(49.1% 0.188 270.9)

  9. Step 800

    800

    #3242A2

    oklch(42.6% 0.155 271)

  10. Step 900

    900

    #2B3981

    oklch(37.6% 0.122 271.1)

  11. Step 950

    950

    #19224B

    oklch(26.9% 0.077 271.1)

Export this scale for Tailwind in the Tailwind colors tool

#5F7AF5 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)#358BF90.050
Deuteranopia (no green cones)#057DF20.058
Tritanopia (no blue cones)#0096AC0.158
Achromatopsia (no color)#8484840.186

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F7AF5

    #5F7AF5

    oklch(62.2% 0.186 270.8)

  • #A48300

    #A48300

    oklch(62.3% 0.127 90.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F7AF5

    #5F7AF5

    oklch(62.2% 0.186 270.8)

  • #008FD5

    #008FD5

    oklch(62.1% 0.145 241.1)

  • #9B65E3

    #9B65E3

    oklch(62.2% 0.186 300.9)

Open the analogous palette in the generator

Split complementary

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

  • #5F7AF5

    #5F7AF5

    oklch(62.2% 0.186 270.8)

  • #C46E00

    #C46E00

    oklch(62.2% 0.145 60.6)

  • #7B9300

    #7B9300

    oklch(62.2% 0.149 120.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F7AF5

    #5F7AF5

    oklch(62.2% 0.186 270.8)

  • #E04E3A

    #E04E3A

    oklch(62.1% 0.185 30.7)

  • #00A24D

    #00A24D

    oklch(62.3% 0.169 150.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F7AF5

    #5F7AF5

    oklch(62.2% 0.186 270.8)

  • #DA4A81

    #DA4A81

    oklch(62.2% 0.185 0.6)

  • #A48300

    #A48300

    oklch(62.3% 0.127 90.9)

  • #009C8A

    #009C8A

    oklch(62.1% 0.112 180.8)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #5F7AF5.

Similar named colors

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

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