#1240F4

Closest named color: Vibrant Blue (#0339F8). oklch(49.1% 0.266 264.8), rgb(18, 64, 244).

Aa

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

About this color

#1240F4 is a medium-dark, vivid blue. In OKLCH its lightness is 49%, its chroma 0.266 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Vibrant Blue (#0339F8), ΔE 0.014 away. White text reads best on it, at 6.85:1.

Hue familyBlues
Lightnessmedium-dark (49%)
Chromavivid (0.266)
Temperaturecool
Nearest nameVibrant Blue (#0339F8)
Black text3.06:1
White text6.85:1

Values

HEX#1240F4
RGBrgb(18, 64, 244)
HSLhsl(228, 91%, 51%)
OKLCHoklch(49.1% 0.266 264.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 #1240F4 6.85:1 AA Lc -87.3 Fine for body text
Black text on #1240F4 3.06:1 AA large text Lc 21.9 Dividers and decoration only
#1240F4 text on white 6.85:1 AA Lc 82.2 Fine for body text
#1240F4 text on black 3.06:1 AA large text Lc -19.7 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 700.

  1. Step 50

    50

    #F1F6FF

    oklch(97.2% 0.013 262.4)

  2. Step 100

    100

    #E0EAFF

    oklch(93.6% 0.03 265.3)

  3. Step 200

    200

    #C7D9FF

    oklch(88.4% 0.056 265.2)

  4. Step 300

    300

    #A2C0FF

    oklch(80.9% 0.096 264.7)

  5. Step 400

    400

    #719DFF

    oklch(70.8% 0.152 264.6)

  6. Step 500

    500

    #4C80FF

    oklch(63.2% 0.197 264.6)

  7. Step 600

    600

    #295EFF

    oklch(55.5% 0.245 264.9)

  8. Step 700

    700 (this color)

    #1240F4

    oklch(49.1% 0.266 264.8)

  9. Step 800

    800

    #1037C5

    oklch(42.7% 0.221 264.9)

  10. Step 900

    900

    #12339B

    oklch(37.7% 0.173 264.9)

  11. Step 950

    950

    #0B205A

    oklch(27% 0.108 264.8)

Export this scale for Tailwind in the Tailwind colors tool

#1240F4 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)#0065F90.075
Deuteranopia (no green cones)#004FF10.026
Tritanopia (no blue cones)#0076970.202
Achromatopsia (no color)#5A5A5A0.268

Harmonies

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

Complementary

The opposite hue (180°).

  • #1240F4

    #1240F4

    oklch(49.1% 0.266 264.8)

  • #7B5B00

    #7B5B00

    oklch(49.1% 0.101 84.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1240F4

    #1240F4

    oklch(49.1% 0.266 264.8)

  • #006993

    #006993

    oklch(49.2% 0.104 234.9)

  • #7408E3

    #7408E3

    oklch(49.1% 0.267 294.8)

Open the analogous palette in the generator

Split complementary

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

  • #1240F4

    #1240F4

    oklch(49.1% 0.266 264.8)

  • #944A00

    #944A00

    oklch(49.2% 0.122 54.7)

  • #606700

    #606700

    oklch(49.1% 0.111 114.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1240F4

    #1240F4

    oklch(49.1% 0.266 264.8)

  • #B7001D

    #B7001D

    oklch(49.1% 0.199 24.8)

  • #00761B

    #00761B

    oklch(49.2% 0.156 144.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1240F4

    #1240F4

    oklch(49.1% 0.266 264.8)

  • #AE0067

    #AE0067

    oklch(49.1% 0.202 354.6)

  • #7B5B00

    #7B5B00

    oklch(49.1% 0.101 84.7)

  • #00725E

    #00725E

    oklch(49.3% 0.093 174.9)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #1240F4.

Similar named colors

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

Use #1240F4 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.