#4173E4

Closest named color: Royal Blue (#4169E1). oklch(58.2% 0.18 263.8), rgb(65, 115, 228).

Aa

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

About this color

#4173E4 is a medium-dark, vivid blue. In OKLCH its lightness is 58%, its chroma 0.180 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.025 away. Black text reads best on it, at 4.79:1.

Hue familyBlues
Lightnessmedium-dark (58%)
Chromavivid (0.180)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.79:1
White text4.37:1

Values

HEX#4173E4
RGBrgb(65, 115, 228)
HSLhsl(222, 75%, 57%)
OKLCHoklch(58.2% 0.18 263.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 #4173E4 4.37:1 AA large text Lc -75.4 Fine for body text
Black text on #4173E4 4.79:1 AA Lc 34.2 Non-text elements, placeholder text
#4173E4 text on white 4.37:1 AA large text Lc 69.9 Content text, not long reading
#4173E4 text on black 4.79:1 AA Lc -31.7 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 600.

  1. Step 50

    50

    #F2F6FD

    oklch(97.2% 0.01 261.8)

  2. Step 100

    100

    #E2EAFA

    oklch(93.6% 0.023 264.5)

  3. Step 200

    200

    #CADAF8

    oklch(88.6% 0.045 263.1)

  4. Step 300

    300

    #A6C1F6

    oklch(81% 0.081 263.6)

  5. Step 400

    400

    #769FF1

    oklch(70.7% 0.129 263.3)

  6. Step 500

    500

    #5484ED

    oklch(63.1% 0.166 263.8)

  7. Step 600

    600 (this color)

    #4173E4

    oklch(58.2% 0.18 263.8)

  8. Step 700

    700

    #2C58BE

    oklch(49% 0.168 263.7)

  9. Step 800

    800

    #25499A

    oklch(42.7% 0.139 263.6)

  10. Step 900

    900

    #233E7A

    oklch(37.7% 0.107 263.8)

  11. Step 950

    950

    #152548

    oklch(27.1% 0.069 263.9)

Export this scale for Tailwind in the Tailwind colors tool

#4173E4 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)#3081E80.035
Deuteranopia (no green cones)#0072E20.033
Tritanopia (no blue cones)#008EA10.144
Achromatopsia (no color)#7979790.180

Harmonies

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

Complementary

The opposite hue (180°).

  • #4173E4

    #4173E4

    oklch(58.2% 0.18 263.8)

  • #9C7300

    #9C7300

    oklch(58.1% 0.119 83.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4173E4

    #4173E4

    oklch(58.2% 0.18 263.8)

  • #0085B7

    #0085B7

    oklch(58.1% 0.121 233.9)

  • #835FD9

    #835FD9

    oklch(58.2% 0.179 293.7)

Open the analogous palette in the generator

Split complementary

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

  • #4173E4

    #4173E4

    oklch(58.2% 0.18 263.8)

  • #BB5E00

    #BB5E00

    oklch(58.3% 0.146 54.1)

  • #7B8200

    #7B8200

    oklch(58.1% 0.13 113.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4173E4

    #4173E4

    oklch(58.2% 0.18 263.8)

  • #D04143

    #D04143

    oklch(58.2% 0.18 23.9)

  • #199424

    #199424

    oklch(58.2% 0.18 143.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4173E4

    #4173E4

    oklch(58.2% 0.18 263.8)

  • #C64183

    #C64183

    oklch(58.2% 0.18 353.6)

  • #9C7300

    #9C7300

    oklch(58.1% 0.119 83.6)

  • #009076

    #009076

    oklch(58.3% 0.111 173.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4173E4 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.