#338AE4

Closest named color: Dark Sky Blue (#448EE4). oklch(62.6% 0.159 252.5), rgb(51, 138, 228).

Aa

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

About this color

#338AE4 is a medium-light, vivid blue. In OKLCH its lightness is 63%, its chroma 0.159 and its hue 253°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Sky Blue (#448EE4), ΔE 0.018 away. Black text reads best on it, at 5.89:1.

Hue familyBlues
Lightnessmedium-light (63%)
Chromavivid (0.159)
Temperaturecool
Nearest nameDark Sky Blue (#448EE4)
Black text5.89:1
White text3.56:1

Values

HEX#338AE4
RGBrgb(51, 138, 228)
HSLhsl(211, 77%, 55%)
OKLCHoklch(62.6% 0.159 252.5)

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 #338AE4 3.56:1 AA large text Lc -68.3 Content text, not long reading
Black text on #338AE4 5.89:1 AA Lc 41.3 Non-text elements, placeholder text
#338AE4 text on white 3.56:1 AA large text Lc 62.8 Content text, not long reading
#338AE4 text on black 5.89:1 AA Lc -38.9 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

    #F1F6FC

    oklch(97.1% 0.01 252.8)

  2. Step 100

    100

    #E0EBF9

    oklch(93.6% 0.022 254.4)

  3. Step 200

    200

    #C5DCF6

    oklch(88.6% 0.044 251.5)

  4. Step 300

    300

    #9DC4F2

    oklch(80.8% 0.078 252.9)

  5. Step 400

    400

    #65A4EC

    oklch(70.7% 0.125 252.8)

  6. Step 500

    500 (this color)

    #338AE4

    oklch(62.6% 0.159 252.5)

  7. Step 600

    600

    #0073D2

    oklch(55.5% 0.17 252.7)

  8. Step 700

    700

    #0061B2

    oklch(49.2% 0.149 252.5)

  9. Step 800

    800

    #004F93

    oklch(42.7% 0.13 252.6)

  10. Step 900

    900

    #0D4276

    oklch(37.6% 0.103 252.5)

  11. Step 950

    950

    #0B2745

    oklch(26.9% 0.065 252.8)

Export this scale for Tailwind in the Tailwind colors tool

#338AE4 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)#5F90E80.043
Deuteranopia (no green cones)#4280E20.026
Tritanopia (no blue cones)#009FAC0.118
Achromatopsia (no color)#8888880.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #338AE4

    #338AE4

    oklch(62.6% 0.159 252.5)

  • #B87900

    #B87900

    oklch(62.6% 0.133 73)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338AE4

    #338AE4

    oklch(62.6% 0.159 252.5)

  • #0097BA

    #0097BA

    oklch(62.7% 0.116 222)

  • #7C78E4

    #7C78E4

    oklch(62.7% 0.159 282.5)

Open the analogous palette in the generator

Split complementary

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

  • #338AE4

    #338AE4

    oklch(62.6% 0.159 252.5)

  • #D4612E

    #D4612E

    oklch(62.6% 0.159 42.4)

  • #988A00

    #988A00

    oklch(62.6% 0.131 102.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338AE4

    #338AE4

    oklch(62.6% 0.159 252.5)

  • #D5586D

    #D5586D

    oklch(62.6% 0.158 12.6)

  • #619B24

    #619B24

    oklch(62.6% 0.159 132.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338AE4

    #338AE4

    oklch(62.6% 0.159 252.5)

  • #C65CA2

    #C65CA2

    oklch(62.7% 0.158 342.3)

  • #B87900

    #B87900

    oklch(62.6% 0.133 73)

  • #00A16F

    #00A16F

    oklch(62.7% 0.137 162.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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