#5F81D7

Closest named color: Soft Blue (#6488EA). oklch(61.8% 0.136 266.2), rgb(95, 129, 215).

Aa

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

About this color

#5F81D7 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 62%, its chroma 0.136 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Soft Blue (#6488EA), ΔE 0.033 away. Black text reads best on it, at 5.60:1.

Hue familyBlues
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.136)
Temperaturecool
Nearest nameSoft Blue (#6488EA)
Black text5.60:1
White text3.74:1

Values

HEX#5F81D7
RGBrgb(95, 129, 215)
HSLhsl(223, 60%, 61%)
OKLCHoklch(61.8% 0.136 266.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 #5F81D7 3.74:1 AA large text Lc -70.3 Content text, not long reading
Black text on #5F81D7 5.60:1 AA Lc 39.3 Non-text elements, placeholder text
#5F81D7 text on white 3.74:1 AA large text Lc 64.8 Content text, not long reading
#5F81D7 text on black 5.60:1 AA Lc -36.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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F2

    oklch(88.5% 0.036 266.7)

  4. Step 300

    300

    #ADC0ED

    oklch(80.9% 0.067 267)

  5. Step 400

    400

    #829FE3

    oklch(70.8% 0.105 266.1)

  6. Step 500

    500 (this color)

    #5F81D7

    oklch(61.8% 0.136 266.2)

  7. Step 600

    600

    #4B6DC9

    oklch(55.6% 0.148 266.4)

  8. Step 700

    700

    #3C5BAE

    oklch(49.2% 0.137 266.1)

  9. Step 800

    800

    #324A8D

    oklch(42.6% 0.115 266.7)

  10. Step 900

    900

    #2B3F70

    oklch(37.7% 0.088 265.7)

  11. Step 950

    950

    #1A2542

    oklch(27% 0.056 266.9)

Export this scale for Tailwind in the Tailwind colors tool

#5F81D7 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)#5D8ADA0.024
Deuteranopia (no green cones)#4E7FD50.020
Tritanopia (no blue cones)#1094A10.123
Achromatopsia (no color)#8484840.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F81D7

    #5F81D7

    oklch(61.8% 0.136 266.2)

  • #A77F00

    #A77F00

    oklch(61.8% 0.127 86.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F81D7

    #5F81D7

    oklch(61.8% 0.136 266.2)

  • #0090CA

    #0090CA

    oklch(61.8% 0.133 236)

  • #8E72CD

    #8E72CD

    oklch(61.8% 0.136 296.4)

Open the analogous palette in the generator

Split complementary

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

  • #5F81D7

    #5F81D7

    oklch(61.8% 0.136 266.2)

  • #C26C22

    #C26C22

    oklch(61.7% 0.137 55.9)

  • #828F13

    #828F13

    oklch(61.9% 0.136 116.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F81D7

    #5F81D7

    oklch(61.8% 0.136 266.2)

  • #CA6159

    #CA6159

    oklch(61.8% 0.135 26.2)

  • #469B51

    #469B51

    oklch(61.9% 0.136 146.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F81D7

    #5F81D7

    oklch(61.8% 0.136 266.2)

  • #C45F88

    #C45F88

    oklch(61.9% 0.136 356.2)

  • #A77F00

    #A77F00

    oklch(61.8% 0.127 86.3)

  • #009B83

    #009B83

    oklch(61.6% 0.115 176.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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