#5F71E2

Closest named color: Cornflower (#6A79F7). oklch(59.2% 0.171 273.2), rgb(95, 113, 226).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (59%)
Chromavivid (0.171)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text4.94:1
White text4.24:1

Values

HEX#5F71E2
RGBrgb(95, 113, 226)
HSLhsl(232, 69%, 63%)
OKLCHoklch(59.2% 0.171 273.2)

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 #5F71E2 4.24:1 AA large text Lc -74.5 Content text, not long reading
Black text on #5F71E2 4.94:1 AA Lc 35.0 Non-text elements, placeholder text
#5F71E2 text on white 4.24:1 AA large text Lc 69.0 Content text, not long reading
#5F71E2 text on black 4.94:1 AA Lc -32.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

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E5E9F9

    oklch(93.6% 0.022 274.7)

  3. Step 200

    200

    #CFD8F6

    oklch(88.5% 0.042 272.3)

  4. Step 300

    300

    #B0BEF3

    oklch(80.9% 0.077 273.1)

  5. Step 400

    400

    #889AED

    oklch(70.6% 0.123 273.6)

  6. Step 500

    500

    #6C7FE7

    oklch(63.1% 0.157 273.3)

  7. Step 600

    600 (this color)

    #5F71E2

    oklch(59.2% 0.171 273.2)

  8. Step 700

    700

    #4654B9

    oklch(49.1% 0.159 273.2)

  9. Step 800

    800

    #394596

    oklch(42.7% 0.132 273.1)

  10. Step 900

    900

    #313B77

    oklch(37.7% 0.102 273.4)

  11. Step 950

    950

    #1C2346

    oklch(27% 0.065 272.8)

Export this scale for Tailwind in the Tailwind colors tool

#5F71E2 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)#3581E60.051
Deuteranopia (no green cones)#1B75E00.057
Tritanopia (no blue cones)#008B9F0.151
Achromatopsia (no color)#7B7B7B0.171

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F71E2

    #5F71E2

    oklch(59.2% 0.171 273.2)

  • #977B00

    #977B00

    oklch(59.2% 0.121 92.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F71E2

    #5F71E2

    oklch(59.2% 0.171 273.2)

  • #0085CC

    #0085CC

    oklch(59.3% 0.144 243.2)

  • #945ED0

    #945ED0

    oklch(59.2% 0.172 303.4)

Open the analogous palette in the generator

Split complementary

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

  • #5F71E2

    #5F71E2

    oklch(59.2% 0.171 273.2)

  • #B56900

    #B56900

    oklch(59.3% 0.135 63.1)

  • #6E8B00

    #6E8B00

    oklch(59.3% 0.146 123.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F71E2

    #5F71E2

    oklch(59.2% 0.171 273.2)

  • #D04C32

    #D04C32

    oklch(59.2% 0.172 33.1)

  • #009750

    #009750

    oklch(59.3% 0.152 153.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F71E2

    #5F71E2

    oklch(59.2% 0.171 273.2)

  • #CC4774

    #CC4774

    oklch(59.3% 0.172 3.1)

  • #977B00

    #977B00

    oklch(59.2% 0.121 92.8)

  • #009284

    #009284

    oklch(59.3% 0.105 183.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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