#336ED8

Closest named color: Royal Blue (#4169E1). oklch(55.8% 0.174 261), rgb(51, 110, 216).

Aa

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

About this color

#336ED8 is a medium-dark, vivid blue. In OKLCH its lightness is 56%, its chroma 0.174 and its hue 261°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.022 away. White text reads best on it, at 4.81:1.

Hue familyBlues
Lightnessmedium-dark (56%)
Chromavivid (0.174)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.36:1
White text4.81:1

Values

HEX#336ED8
RGBrgb(51, 110, 216)
HSLhsl(219, 68%, 52%)
OKLCHoklch(55.8% 0.174 261)

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 #336ED8 4.81:1 AA Lc -78.4 Fine for body text
Black text on #336ED8 4.36:1 AA large text Lc 31.1 Non-text elements, placeholder text
#336ED8 text on white 4.81:1 AA Lc 72.9 Content text, not long reading
#336ED8 text on black 4.36:1 AA large text Lc -28.8 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 600.

  1. Step 50

    50

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #E1EAFA

    oklch(93.5% 0.024 262.1)

  3. Step 200

    200

    #C9DAF7

    oklch(88.5% 0.044 261.2)

  4. Step 300

    300

    #A4C2F4

    oklch(81% 0.078 260.5)

  5. Step 400

    400

    #73A0EF

    oklch(70.7% 0.126 261.1)

  6. Step 500

    500

    #4F86E9

    oklch(63.1% 0.16 261.2)

  7. Step 600

    600 (this color)

    #336ED8

    oklch(55.8% 0.174 261)

  8. Step 700

    700

    #255BBB

    oklch(49.2% 0.162 260.9)

  9. Step 800

    800

    #204B97

    oklch(42.8% 0.134 260.8)

  10. Step 900

    900

    #1F3F78

    oklch(37.6% 0.105 261)

  11. Step 950

    950

    #132546

    oklch(26.9% 0.066 261.5)

Export this scale for Tailwind in the Tailwind colors tool

#336ED8 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)#2F7ADC0.031
Deuteranopia (no green cones)#006BD60.026
Tritanopia (no blue cones)#0087990.135
Achromatopsia (no color)#7272720.174

Harmonies

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

Complementary

The opposite hue (180°).

  • #336ED8

    #336ED8

    oklch(55.8% 0.174 261)

  • #966B00

    #966B00

    oklch(55.7% 0.115 80.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #336ED8

    #336ED8

    oklch(55.8% 0.174 261)

  • #007FA9

    #007FA9

    oklch(55.9% 0.112 230.4)

  • #775AD0

    #775AD0

    oklch(55.7% 0.175 291)

Open the analogous palette in the generator

Split complementary

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

  • #336ED8

    #336ED8

    oklch(55.8% 0.174 261)

  • #B45500

    #B45500

    oklch(55.8% 0.145 51.1)

  • #787A00

    #787A00

    oklch(55.9% 0.123 110.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #336ED8

    #336ED8

    oklch(55.8% 0.174 261)

  • #C53B45

    #C53B45

    oklch(55.8% 0.174 21)

  • #278B13

    #278B13

    oklch(55.8% 0.175 141)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #336ED8

    #336ED8

    oklch(55.8% 0.174 261)

  • #BA3C80

    #BA3C80

    oklch(55.7% 0.175 351)

  • #966B00

    #966B00

    oklch(55.7% 0.115 80.8)

  • #00886B

    #00886B

    oklch(55.8% 0.109 170.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #336ED8 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.