#336FD7

Closest named color: Royal Blue (#4169E1). oklch(55.9% 0.172 260.6), rgb(51, 111, 215).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (56%)
Chromavivid (0.172)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.39:1
White text4.77:1

Values

HEX#336FD7
RGBrgb(51, 111, 215)
HSLhsl(218, 67%, 52%)
OKLCHoklch(55.9% 0.172 260.6)

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 #336FD7 4.77:1 AA Lc -78.1 Fine for body text
Black text on #336FD7 4.39:1 AA large text Lc 31.4 Non-text elements, placeholder text
#336FD7 text on white 4.77:1 AA Lc 72.7 Content text, not long reading
#336FD7 text on black 4.39:1 AA large text Lc -29.0 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

    #E1EAF9

    oklch(93.5% 0.023 260.7)

  3. Step 200

    200

    #C9DAF6

    oklch(88.4% 0.043 260.4)

  4. Step 300

    300

    #A4C2F3

    oklch(80.9% 0.077 260.1)

  5. Step 400

    400

    #73A0ED

    oklch(70.6% 0.124 260.7)

  6. Step 500

    500

    #4E87E8

    oklch(63.2% 0.158 260.3)

  7. Step 600

    600 (this color)

    #336FD7

    oklch(55.9% 0.172 260.6)

  8. Step 700

    700

    #255BB9

    oklch(49% 0.159 260.7)

  9. Step 800

    800

    #204B96

    oklch(42.7% 0.132 260.7)

  10. Step 900

    900

    #1F3F77

    oklch(37.6% 0.103 260.7)

  11. Step 950

    950

    #132646

    oklch(27.1% 0.065 260.2)

Export this scale for Tailwind in the Tailwind colors tool

#336FD7 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)#337ADB0.029
Deuteranopia (no green cones)#006BD50.027
Tritanopia (no blue cones)#0088990.134
Achromatopsia (no color)#7272720.172

Harmonies

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

Complementary

The opposite hue (180°).

  • #336FD7

    #336FD7

    oklch(55.9% 0.172 260.6)

  • #976B00

    #976B00

    oklch(55.9% 0.116 80.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #336FD7

    #336FD7

    oklch(55.9% 0.172 260.6)

  • #007FA9

    #007FA9

    oklch(55.9% 0.112 230.4)

  • #775CD0

    #775CD0

    oklch(56% 0.172 290.5)

Open the analogous palette in the generator

Split complementary

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

  • #336FD7

    #336FD7

    oklch(55.9% 0.172 260.6)

  • #B55500

    #B55500

    oklch(56% 0.146 50.8)

  • #787A00

    #787A00

    oklch(55.9% 0.123 110.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #336FD7

    #336FD7

    oklch(55.9% 0.172 260.6)

  • #C53D47

    #C53D47

    oklch(56% 0.172 20.7)

  • #2C8B15

    #2C8B15

    oklch(56% 0.172 140.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #336FD7

    #336FD7

    oklch(55.9% 0.172 260.6)

  • #BA3E81

    #BA3E81

    oklch(56% 0.172 350.8)

  • #976B00

    #976B00

    oklch(55.9% 0.116 80.2)

  • #00896B

    #00896B

    oklch(56.1% 0.111 170.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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