#254FAF

Closest named color: Blue Blue (#2242C7). oklch(45.7% 0.161 263.5), rgb(37, 79, 175).

Aa

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

About this color

#254FAF is a medium-dark, vivid blue. In OKLCH its lightness is 46%, its chroma 0.161 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Blue Blue (#2242C7), ΔE 0.049 away. White text reads best on it, at 7.45:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromavivid (0.161)
Temperaturecool
Nearest nameBlue Blue (#2242C7)
Black text2.81:1
White text7.45:1

Values

HEX#254FAF
RGBrgb(37, 79, 175)
HSLhsl(222, 65%, 42%)
OKLCHoklch(45.7% 0.161 263.5)

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 #254FAF 7.45:1 AAA Lc -90.3 Preferred for body text
Black text on #254FAF 2.81:1 Fails Lc 18.6 Dividers and decoration only
#254FAF text on white 7.45:1 AAA Lc 85.4 Fine for body text
#254FAF text on black 2.81:1 Fails Lc -16.6 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 800.

  1. Step 50

    50

    #F1F6FE

    oklch(97.2% 0.012 259.8)

  2. Step 100

    100

    #E1EAFD

    oklch(93.6% 0.028 265.4)

  3. Step 200

    200

    #C8DAFD

    oklch(88.6% 0.052 263.7)

  4. Step 300

    300

    #A1C1FE

    oklch(81% 0.094 263)

  5. Step 400

    400

    #6F9DFE

    oklch(70.6% 0.151 263.8)

  6. Step 500

    500

    #4A81FC

    oklch(63.1% 0.193 263.7)

  7. Step 600

    600

    #2E67EB

    oklch(55.6% 0.209 263.5)

  8. Step 700

    700

    #2254CC

    oklch(49% 0.194 263.6)

  9. Step 800

    800 (this color)

    #254FAF

    oklch(45.7% 0.161 263.5)

  10. Step 900

    900

    #1D3C83

    oklch(37.7% 0.125 263.7)

  11. Step 950

    950

    #11244D

    oklch(27.1% 0.08 263.3)

Export this scale for Tailwind in the Tailwind colors tool

#254FAF 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)#005CB20.034
Deuteranopia (no green cones)#004FAD0.019
Tritanopia (no blue cones)#0067770.126
Achromatopsia (no color)#5555550.161

Harmonies

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

Complementary

The opposite hue (180°).

  • #254FAF

    #254FAF

    oklch(45.7% 0.161 263.5)

  • #705100

    #705100

    oklch(45.6% 0.094 83)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #254FAF

    #254FAF

    oklch(45.7% 0.161 263.5)

  • #005F83

    #005F83

    oklch(45.7% 0.095 233.1)

  • #5E3DA6

    #5E3DA6

    oklch(45.6% 0.161 293.5)

Open the analogous palette in the generator

Split complementary

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

  • #254FAF

    #254FAF

    oklch(45.7% 0.161 263.5)

  • #874100

    #874100

    oklch(45.7% 0.116 53.3)

  • #575D00

    #575D00

    oklch(45.7% 0.103 114.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #254FAF

    #254FAF

    oklch(45.7% 0.161 263.5)

  • #9D2028

    #9D2028

    oklch(45.7% 0.16 23.4)

  • #006B0D

    #006B0D

    oklch(45.8% 0.151 143.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #254FAF

    #254FAF

    oklch(45.7% 0.161 263.5)

  • #95215E

    #95215E

    oklch(45.7% 0.161 353.5)

  • #705100

    #705100

    oklch(45.6% 0.094 83)

  • #006753

    #006753

    oklch(45.8% 0.088 173.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #254FAF 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.