#338CD8

Closest named color: Dark Sky Blue (#448EE4). oklch(62.4% 0.142 248.3), rgb(51, 140, 216).

Aa

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

About this color

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

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

Values

HEX#338CD8
RGBrgb(51, 140, 216)
HSLhsl(208, 68%, 52%)
OKLCHoklch(62.4% 0.142 248.3)

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 #338CD8 3.56:1 AA large text Lc -68.4 Content text, not long reading
Black text on #338CD8 5.88:1 AA Lc 41.2 Non-text elements, placeholder text
#338CD8 text on white 3.56:1 AA large text Lc 62.9 Content text, not long reading
#338CD8 text on black 5.88:1 AA Lc -38.8 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

    #E0EBF7

    oklch(93.5% 0.02 250.4)

  3. Step 200

    200

    #C6DCF2

    oklch(88.5% 0.038 248.3)

  4. Step 300

    300

    #9EC5EC

    oklch(80.9% 0.069 248.7)

  5. Step 400

    400

    #66A6E3

    oklch(70.7% 0.112 248.6)

  6. Step 500

    500 (this color)

    #338CD8

    oklch(62.4% 0.142 248.3)

  7. Step 600

    600

    #0077C6

    oklch(55.6% 0.15 248.2)

  8. Step 700

    700

    #0064A8

    oklch(49.2% 0.133 248.3)

  9. Step 800

    800

    #00518B

    oklch(42.6% 0.117 248.8)

  10. Step 900

    900

    #0E4470

    oklch(37.7% 0.093 248.5)

  11. Step 950

    950

    #0B2841

    oklch(26.9% 0.058 248)

Export this scale for Tailwind in the Tailwind colors tool

#338CD8 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)#6990DB0.051
Deuteranopia (no green cones)#5181D70.034
Tritanopia (no blue cones)#009EA80.103
Achromatopsia (no color)#8787870.142

Harmonies

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

Complementary

The opposite hue (180°).

  • #338CD8

    #338CD8

    oklch(62.4% 0.142 248.3)

  • #BC7500

    #BC7500

    oklch(62.4% 0.137 68.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338CD8

    #338CD8

    oklch(62.4% 0.142 248.3)

  • #0097B4

    #0097B4

    oklch(62.4% 0.112 217.8)

  • #757CDB

    #757CDB

    oklch(62.4% 0.142 278.3)

Open the analogous palette in the generator

Split complementary

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

  • #338CD8

    #338CD8

    oklch(62.4% 0.142 248.3)

  • #CD6443

    #CD6443

    oklch(62.3% 0.142 38.1)

  • #9C8700

    #9C8700

    oklch(62.4% 0.129 98.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338CD8

    #338CD8

    oklch(62.4% 0.142 248.3)

  • #CD5E76

    #CD5E76

    oklch(62.4% 0.142 8.6)

  • #6D972C

    #6D972C

    oklch(62.4% 0.142 128.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338CD8

    #338CD8

    oklch(62.4% 0.142 248.3)

  • #BD62A4

    #BD62A4

    oklch(62.4% 0.142 338.6)

  • #BC7500

    #BC7500

    oklch(62.4% 0.137 68.3)

  • #10A066

    #10A066

    oklch(62.3% 0.141 158.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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