#338EC4

Closest named color: Cool Blue (#4984B8). oklch(61.8% 0.117 239.1), rgb(51, 142, 196).

Aa

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

About this color

#338EC4 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 62%, its chroma 0.117 and its hue 239°. Its hue sits on the cool side of the wheel. The nearest named color is Cool Blue (#4984B8), ΔE 0.031 away. Black text reads best on it, at 5.80:1.

Hue familyBlues
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.117)
Temperaturecool
Nearest nameCool Blue (#4984B8)
Black text5.80:1
White text3.61:1

Values

HEX#338EC4
RGBrgb(51, 142, 196)
HSLhsl(202, 59%, 48%)
OKLCHoklch(61.8% 0.117 239.1)

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 #338EC4 3.61:1 AA large text Lc -68.9 Content text, not long reading
Black text on #338EC4 5.80:1 AA Lc 40.7 Non-text elements, placeholder text
#338EC4 text on white 3.61:1 AA large text Lc 63.4 Content text, not long reading
#338EC4 text on black 5.80:1 AA Lc -38.3 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

    #F1F6FA

    oklch(97.1% 0.008 241.7)

  2. Step 100

    100

    #E0ECF4

    oklch(93.6% 0.017 236.7)

  3. Step 200

    200

    #C7DDEC

    oklch(88.6% 0.031 237.6)

  4. Step 300

    300

    #9FC6E2

    oklch(80.8% 0.057 239.6)

  5. Step 400

    400

    #68A9D4

    oklch(70.8% 0.092 238.9)

  6. Step 500

    500 (this color)

    #338EC4

    oklch(61.8% 0.117 239.1)

  7. Step 600

    600

    #007BB4

    oklch(55.5% 0.126 239.3)

  8. Step 700

    700

    #006898

    oklch(49.2% 0.11 238.7)

  9. Step 800

    800

    #00557E

    oklch(42.8% 0.097 239.2)

  10. Step 900

    900

    #0F4666

    oklch(37.6% 0.077 239.9)

  11. Step 950

    950

    #0C293B

    oklch(26.9% 0.048 239.4)

Export this scale for Tailwind in the Tailwind colors tool

#338EC4 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)#758EC60.063
Deuteranopia (no green cones)#6180C30.052
Tritanopia (no blue cones)#009CA10.079
Achromatopsia (no color)#8787870.117

Harmonies

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

Complementary

The opposite hue (180°).

  • #338EC4

    #338EC4

    oklch(61.8% 0.117 239.1)

  • #B97234

    #B97234

    oklch(61.8% 0.118 58.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338EC4

    #338EC4

    oklch(61.8% 0.117 239.1)

  • #0096A8

    #0096A8

    oklch(61.7% 0.107 209.6)

  • #6981CC

    #6981CC

    oklch(61.7% 0.117 269.3)

Open the analogous palette in the generator

Split complementary

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

  • #338EC4

    #338EC4

    oklch(61.8% 0.117 239.1)

  • #C2685B

    #C2685B

    oklch(61.8% 0.117 29.4)

  • #A2811D

    #A2811D

    oklch(61.8% 0.117 88.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338EC4

    #338EC4

    oklch(61.8% 0.117 239.1)

  • #BD6584

    #BD6584

    oklch(61.7% 0.118 358.7)

  • #7E8F35

    #7E8F35

    oklch(61.8% 0.117 119)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338EC4

    #338EC4

    oklch(61.8% 0.117 239.1)

  • #AC6AA8

    #AC6AA8

    oklch(61.7% 0.118 329)

  • #B97234

    #B97234

    oklch(61.8% 0.118 58.8)

  • #4C995D

    #4C995D

    oklch(61.8% 0.118 149.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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