#5178FE

Closest named color: Cornflower (#6A79F7). oklch(61.8% 0.204 267.8), rgb(81, 120, 254).

Aa

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

About this color

#5178FE is a medium-dark, vivid blue. In OKLCH its lightness is 62%, its chroma 0.204 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.031 away. Black text reads best on it, at 5.46:1.

Hue familyBlues
Lightnessmedium-dark (62%)
Chromavivid (0.204)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.46:1
White text3.84:1

Values

HEX#5178FE
RGBrgb(81, 120, 254)
HSLhsl(226, 99%, 66%)
OKLCHoklch(61.8% 0.204 267.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 #5178FE 3.84:1 AA large text Lc -71.0 Content text, not long reading
Black text on #5178FE 5.46:1 AA Lc 38.6 Non-text elements, placeholder text
#5178FE text on white 3.84:1 AA large text Lc 65.5 Content text, not long reading
#5178FE text on black 5.46:1 AA Lc -36.2 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

    #F1F5FF

    oklch(97% 0.014 268.5)

  2. Step 100

    100

    #E1EAFE

    oklch(93.6% 0.029 266.4)

  3. Step 200

    200

    #C9D9FF

    oklch(88.6% 0.055 267.2)

  4. Step 300

    300

    #A6BFFF

    oklch(80.9% 0.095 267.8)

  5. Step 400

    400

    #779BFF

    oklch(70.7% 0.152 267.5)

  6. Step 500

    500 (this color)

    #5178FE

    oklch(61.8% 0.204 267.8)

  7. Step 600

    600

    #3D61F2

    oklch(55.6% 0.221 267.7)

  8. Step 700

    700

    #304ED3

    oklch(49% 0.207 267.8)

  9. Step 800

    800

    #2841AA

    oklch(42.6% 0.17 267.9)

  10. Step 900

    900

    #233987

    oklch(37.7% 0.133 267.6)

  11. Step 950

    950

    #15224F

    oklch(27% 0.084 268.2)

Export this scale for Tailwind in the Tailwind colors tool

#5178FE 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)#148AFF0.052
Deuteranopia (no green cones)#007BFB0.044
Tritanopia (no blue cones)#0098B00.165
Achromatopsia (no color)#8282820.204

Harmonies

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

Complementary

The opposite hue (180°).

  • #5178FE

    #5178FE

    oklch(61.8% 0.204 267.8)

  • #A58000

    #A58000

    oklch(61.8% 0.126 88.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5178FE

    #5178FE

    oklch(61.8% 0.204 267.8)

  • #008FCD

    #008FCD

    oklch(61.7% 0.137 237.9)

  • #9761EE

    #9761EE

    oklch(61.9% 0.204 297.8)

Open the analogous palette in the generator

Split complementary

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

  • #5178FE

    #5178FE

    oklch(61.8% 0.204 267.8)

  • #C56A00

    #C56A00

    oklch(61.7% 0.148 57.8)

  • #7F9000

    #7F9000

    oklch(61.8% 0.144 117.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5178FE

    #5178FE

    oklch(61.8% 0.204 267.8)

  • #E64138

    #E64138

    oklch(61.7% 0.203 27.9)

  • #00A13E

    #00A13E

    oklch(61.8% 0.18 147.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5178FE

    #5178FE

    oklch(61.8% 0.204 267.8)

  • #DE3E85

    #DE3E85

    oklch(61.8% 0.204 358)

  • #A58000

    #A58000

    oklch(61.8% 0.126 88.2)

  • #009B85

    #009B85

    oklch(61.7% 0.114 177.9)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #5178FE.

Similar named colors

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

Use #5178FE 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.