#338BD5

Closest named color: Water Blue (#0E87CC). oklch(62% 0.139 247.9), rgb(51, 139, 213).

Aa

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

About this color

#338BD5 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 62%, its chroma 0.139 and its hue 248°. Its hue sits on the cool side of the wheel. The nearest named color is Water Blue (#0E87CC), ΔE 0.025 away. Black text reads best on it, at 5.79:1.

Hue familyBlues
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.139)
Temperaturecool
Nearest nameWater Blue (#0E87CC)
Black text5.79:1
White text3.62:1

Values

HEX#338BD5
RGBrgb(51, 139, 213)
HSLhsl(207, 66%, 52%)
OKLCHoklch(62% 0.139 247.9)

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 #338BD5 3.62:1 AA large text Lc -68.9 Content text, not long reading
Black text on #338BD5 5.79:1 AA Lc 40.6 Non-text elements, placeholder text
#338BD5 text on white 3.62:1 AA large text Lc 63.5 Content text, not long reading
#338BD5 text on black 5.79:1 AA Lc -38.2 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 500.

  1. Step 50

    50

    #F1F6FB

    oklch(97.1% 0.009 247.9)

  2. Step 100

    100

    #E0EBF7

    oklch(93.5% 0.02 250.4)

  3. Step 200

    200

    #C6DCF1

    oklch(88.5% 0.037 247)

  4. Step 300

    300

    #9EC5EB

    oklch(80.8% 0.068 248)

  5. Step 400

    400

    #67A6E1

    oklch(70.7% 0.109 248.1)

  6. Step 500

    500 (this color)

    #338BD5

    oklch(62% 0.139 247.9)

  7. Step 600

    600

    #0077C5

    oklch(55.6% 0.149 247.9)

  8. Step 700

    700

    #0064A7

    oklch(49.1% 0.132 247.9)

  9. Step 800

    800

    #00528A

    oklch(42.8% 0.115 247.8)

  10. Step 900

    900

    #0F446F

    oklch(37.7% 0.091 248.2)

  11. Step 950

    950

    #0B2841

    oklch(26.9% 0.058 248)

Export this scale for Tailwind in the Tailwind colors tool

#338BD5 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)#698FD80.052
Deuteranopia (no green cones)#5180D40.035
Tritanopia (no blue cones)#009DA60.102
Achromatopsia (no color)#8686860.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #338BD5

    #338BD5

    oklch(62% 0.139 247.9)

  • #BB7400

    #BB7400

    oklch(62.1% 0.136 68.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338BD5

    #338BD5

    oklch(62% 0.139 247.9)

  • #0095B2

    #0095B2

    oklch(61.8% 0.111 218.1)

  • #747BD8

    #747BD8

    oklch(62% 0.139 278.3)

Open the analogous palette in the generator

Split complementary

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

  • #338BD5

    #338BD5

    oklch(62% 0.139 247.9)

  • #CB6444

    #CB6444

    oklch(62% 0.139 37.9)

  • #9B8600

    #9B8600

    oklch(62% 0.128 98.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338BD5

    #338BD5

    oklch(62% 0.139 247.9)

  • #CA5E76

    #CA5E76

    oklch(62% 0.139 8.1)

  • #6E952C

    #6E952C

    oklch(62% 0.139 127.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338BD5

    #338BD5

    oklch(62% 0.139 247.9)

  • #BA62A3

    #BA62A3

    oklch(62% 0.139 337.9)

  • #BB7400

    #BB7400

    oklch(62.1% 0.136 68.1)

  • #189E65

    #189E65

    oklch(61.9% 0.138 158.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #338BD5 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.