#797FFB

Closest named color: Cornflower (#6A79F7). oklch(65.2% 0.181 278), rgb(121, 127, 251).

Aa

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

About this color

#797FFB is a medium-light, vivid blue. In OKLCH its lightness is 65%, its chroma 0.181 and its hue 278°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.027 away. Black text reads best on it, at 6.24:1.

Hue familyBlues
Lightnessmedium-light (65%)
Chromavivid (0.181)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text6.24:1
White text3.36:1

Values

HEX#797FFB
RGBrgb(121, 127, 251)
HSLhsl(237, 94%, 73%)
OKLCHoklch(65.2% 0.181 278)

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 #797FFB 3.36:1 AA large text Lc -66.3 Content text, not long reading
Black text on #797FFB 6.24:1 AA Lc 43.2 Non-text elements, placeholder text
#797FFB text on white 3.36:1 AA large text Lc 60.9 Content text, not long reading
#797FFB text on black 6.24:1 AA Lc -40.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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E5E9FB

    oklch(93.6% 0.025 275.9)

  3. Step 200

    200

    #D1D7FA

    oklch(88.6% 0.049 277.7)

  4. Step 300

    300

    #B3BBFA

    oklch(80.8% 0.089 278.6)

  5. Step 400

    400

    #8D96F7

    oklch(70.7% 0.141 278.1)

  6. Step 500

    500 (this color)

    #797FFB

    oklch(65.2% 0.181 278)

  7. Step 600

    600

    #5E5DE2

    oklch(55.5% 0.197 278.2)

  8. Step 700

    700

    #4E4CC5

    oklch(49.2% 0.183 278)

  9. Step 800

    800

    #403F9F

    oklch(42.7% 0.152 278.3)

  10. Step 900

    900

    #35377E

    oklch(37.7% 0.118 277.9)

  11. Step 950

    950

    #1F214A

    oklch(27.1% 0.075 278.1)

Export this scale for Tailwind in the Tailwind colors tool

#797FFB 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)#4291FF0.066
Deuteranopia (no green cones)#3387F80.069
Tritanopia (no blue cones)#409AB10.158
Achromatopsia (no color)#8C8C8C0.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #797FFB

    #797FFB

    oklch(65.2% 0.181 278)

  • #A68F00

    #A68F00

    oklch(65.1% 0.134 97.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797FFB

    #797FFB

    oklch(65.2% 0.181 278)

  • #0094F4

    #0094F4

    oklch(65.1% 0.176 248.1)

  • #AE6BE3

    #AE6BE3

    oklch(65.1% 0.181 307.9)

Open the analogous palette in the generator

Split complementary

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

  • #797FFB

    #797FFB

    oklch(65.2% 0.181 278)

  • #C87C00

    #C87C00

    oklch(65.2% 0.143 67.8)

  • #71A200

    #71A200

    oklch(65.2% 0.171 128)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797FFB

    #797FFB

    oklch(65.2% 0.181 278)

  • #E85E30

    #E85E30

    oklch(65.2% 0.181 38.1)

  • #00AB6B

    #00AB6B

    oklch(65.3% 0.153 158)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797FFB

    #797FFB

    oklch(65.2% 0.181 278)

  • #E6557A

    #E6557A

    oklch(65.1% 0.181 8.1)

  • #A68F00

    #A68F00

    oklch(65.1% 0.134 97.7)

  • #00A69D

    #00A69D

    oklch(65.3% 0.114 188)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #797FFB.

Similar named colors

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

Use #797FFB 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.