#5F5ECE

Closest named color: Dark Periwinkle (#665FD1). oklch(54.3% 0.169 279.6), rgb(95, 94, 206).

Aa

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

About this color

#5F5ECE is a medium-dark, vivid blue. In OKLCH its lightness is 54%, its chroma 0.169 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Periwinkle (#665FD1), ΔE 0.012 away. White text reads best on it, at 5.27:1.

Hue familyBlues
Lightnessmedium-dark (54%)
Chromavivid (0.169)
Temperaturecool
Nearest nameDark Periwinkle (#665FD1)
Black text3.97:1
White text5.27:1

Values

HEX#5F5ECE
RGBrgb(95, 94, 206)
HSLhsl(241, 53%, 59%)
OKLCHoklch(54.3% 0.169 279.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 #5F5ECE 5.27:1 AA Lc -81.3 Fine for body text
Black text on #5F5ECE 3.97:1 AA large text Lc 28.1 Dividers and decoration only
#5F5ECE text on white 5.27:1 AA Lc 75.9 Fine for body text
#5F5ECE text on black 3.97:1 AA large text Lc -25.8 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 600.

  1. Step 50

    50

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E6E9F9

    oklch(93.6% 0.022 277.5)

  3. Step 200

    200

    #D3D7F5

    oklch(88.5% 0.041 279.5)

  4. Step 300

    300

    #B6BCF2

    oklch(80.9% 0.076 279.6)

  5. Step 400

    400

    #9198EB

    oklch(70.8% 0.121 279.1)

  6. Step 500

    500

    #787CE5

    oklch(63.2% 0.155 279.3)

  7. Step 600

    600 (this color)

    #5F5ECE

    oklch(54.3% 0.169 279.6)

  8. Step 700

    700

    #5250B6

    oklch(49% 0.157 279.8)

  9. Step 800

    800

    #434394

    oklch(42.8% 0.13 279.4)

  10. Step 900

    900

    #383976

    oklch(37.7% 0.102 279.6)

  11. Step 950

    950

    #212245

    oklch(27.1% 0.064 280)

Export this scale for Tailwind in the Tailwind colors tool

#5F5ECE 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)#1770D20.072
Deuteranopia (no green cones)#0067CC0.074
Tritanopia (no blue cones)#2C788D0.146
Achromatopsia (no color)#6C6C6C0.169

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F5ECE

    #5F5ECE

    oklch(54.3% 0.169 279.6)

  • #807000

    #807000

    oklch(54.4% 0.113 99.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F5ECE

    #5F5ECE

    oklch(54.3% 0.169 279.6)

  • #0072C3

    #0072C3

    oklch(54.3% 0.152 249.6)

  • #8D4CB8

    #8D4CB8

    oklch(54.3% 0.17 309.7)

Open the analogous palette in the generator

Split complementary

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

  • #5F5ECE

    #5F5ECE

    oklch(54.3% 0.169 279.6)

  • #9B6100

    #9B6100

    oklch(54.4% 0.118 69.5)

  • #537F00

    #537F00

    oklch(54.3% 0.146 129.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F5ECE

    #5F5ECE

    oklch(54.3% 0.169 279.6)

  • #BC4106

    #BC4106

    oklch(54.3% 0.168 39.7)

  • #008555

    #008555

    oklch(54.4% 0.124 159.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F5ECE

    #5F5ECE

    oklch(54.3% 0.169 279.6)

  • #BC3859

    #BC3859

    oklch(54.4% 0.169 10)

  • #807000

    #807000

    oklch(54.4% 0.113 99.3)

  • #00817B

    #00817B

    oklch(54.4% 0.094 189.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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