#338AF2

Closest named color: Dodger Blue (#1E90FF). oklch(63.5% 0.176 255.3), rgb(51, 138, 242).

Aa

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

About this color

#338AF2 is a medium-light, vivid blue. In OKLCH its lightness is 63%, its chroma 0.176 and its hue 255°. Its hue sits on the cool side of the wheel. The nearest named color is Dodger Blue (#1E90FF), ΔE 0.023 away. Black text reads best on it, at 6.05:1.

Hue familyBlues
Lightnessmedium-light (63%)
Chromavivid (0.176)
Temperaturecool
Nearest nameDodger Blue (#1E90FF)
Black text6.05:1
White text3.46:1

Values

HEX#338AF2
RGBrgb(51, 138, 242)
HSLhsl(213, 88%, 57%)
OKLCHoklch(63.5% 0.176 255.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 #338AF2 3.46:1 AA large text Lc -67.2 Content text, not long reading
Black text on #338AF2 6.05:1 AA Lc 42.3 Non-text elements, placeholder text
#338AF2 text on white 3.46:1 AA large text Lc 61.7 Content text, not long reading
#338AF2 text on black 6.05:1 AA Lc -40.0 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

    #F0F6FD

    oklch(97.1% 0.011 252.1)

  2. Step 100

    100

    #DFEBFB

    oklch(93.6% 0.025 255.6)

  3. Step 200

    200

    #C5DBF9

    oklch(88.5% 0.048 256.2)

  4. Step 300

    300

    #9BC4F8

    oklch(81% 0.086 254.6)

  5. Step 400

    400

    #63A3F5

    oklch(70.8% 0.138 255.3)

  6. Step 500

    500 (this color)

    #338AF2

    oklch(63.5% 0.176 255.3)

  7. Step 600

    600

    #0070DC

    oklch(55.6% 0.186 255.4)

  8. Step 700

    700

    #005EBA

    oklch(49.1% 0.163 255.3)

  9. Step 800

    800

    #004D9A

    oklch(42.7% 0.142 255.2)

  10. Step 900

    900

    #0B417D

    oklch(37.8% 0.115 255.1)

  11. Step 950

    950

    #0A2649

    oklch(26.9% 0.073 255.8)

Export this scale for Tailwind in the Tailwind colors tool

#338AF2 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)#5593F60.039
Deuteranopia (no green cones)#2F82F00.022
Tritanopia (no blue cones)#00A3B20.134
Achromatopsia (no color)#8A8A8A0.176

Harmonies

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

Complementary

The opposite hue (180°).

  • #338AF2

    #338AF2

    oklch(63.5% 0.176 255.3)

  • #B97D00

    #B97D00

    oklch(63.5% 0.134 75.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338AF2

    #338AF2

    oklch(63.5% 0.176 255.3)

  • #0099C2

    #0099C2

    oklch(63.6% 0.121 225.5)

  • #8376EF

    #8376EF

    oklch(63.6% 0.176 285.1)

Open the analogous palette in the generator

Split complementary

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

  • #338AF2

    #338AF2

    oklch(63.5% 0.176 255.3)

  • #DD5F0E

    #DD5F0E

    oklch(63.5% 0.176 45.4)

  • #978E00

    #978E00

    oklch(63.4% 0.135 105.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338AF2

    #338AF2

    oklch(63.5% 0.176 255.3)

  • #E05367

    #E05367

    oklch(63.5% 0.175 15.2)

  • #56A11B

    #56A11B

    oklch(63.6% 0.176 135.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338AF2

    #338AF2

    oklch(63.5% 0.176 255.3)

  • #D156A2

    #D156A2

    oklch(63.4% 0.176 345.2)

  • #B97D00

    #B97D00

    oklch(63.5% 0.134 75.3)

  • #00A377

    #00A377

    oklch(63.4% 0.132 165.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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