#338EB5

Closest named color: Blue NCS (#118AB2). oklch(61% 0.103 230.4), rgb(51, 142, 181).

Aa

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

About this color

#338EB5 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 61%, its chroma 0.103 and its hue 230°. Its hue sits on the cool side of the wheel. The nearest named color is Blue NCS (#118AB2), ΔE 0.021 away. Black text reads best on it, at 5.67:1.

Hue familyBlues
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.103)
Temperaturecool
Nearest nameBlue NCS (#118AB2)
Black text5.67:1
White text3.69:1

Values

HEX#338EB5
RGBrgb(51, 142, 181)
HSLhsl(198, 56%, 45%)
OKLCHoklch(61% 0.103 230.4)

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 #338EB5 3.69:1 AA large text Lc -69.8 Content text, not long reading
Black text on #338EB5 5.67:1 AA Lc 39.8 Non-text elements, placeholder text
#338EB5 text on white 3.69:1 AA large text Lc 64.3 Content text, not long reading
#338EB5 text on black 5.67:1 AA Lc -37.4 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

    #F1F6F9

    oklch(97% 0.007 233.6)

  2. Step 100

    100

    #E1ECF2

    oklch(93.7% 0.014 231.2)

  3. Step 200

    200

    #C7DDE8

    oklch(88.5% 0.028 229.2)

  4. Step 300

    300

    #A0C7DB

    oklch(80.8% 0.05 230.4)

  5. Step 400

    400

    #6AAAC9

    oklch(70.7% 0.08 230.4)

  6. Step 500

    500 (this color)

    #338EB5

    oklch(61% 0.103 230.4)

  7. Step 600

    600

    #007EA8

    oklch(55.6% 0.112 230.6)

  8. Step 700

    700

    #006A8E

    oklch(49.1% 0.099 230.6)

  9. Step 800

    800

    #005775

    oklch(42.8% 0.086 230.3)

  10. Step 900

    900

    #11485E

    oklch(37.8% 0.066 229.6)

  11. Step 950

    950

    #0D2A37

    oklch(27% 0.042 230.5)

Export this scale for Tailwind in the Tailwind colors tool

#338EB5 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)#7A8CB70.070
Deuteranopia (no green cones)#687FB40.060
Tritanopia (no blue cones)#00999B0.062
Achromatopsia (no color)#8585850.103

Harmonies

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

Complementary

The opposite hue (180°).

  • #338EB5

    #338EB5

    oklch(61% 0.103 230.4)

  • #B47048

    #B47048

    oklch(61% 0.102 50.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338EB5

    #338EB5

    oklch(61% 0.103 230.4)

  • #08959C

    #08959C

    oklch(61% 0.102 200.8)

  • #5F83C1

    #5F83C1

    oklch(61% 0.103 260.8)

Open the analogous palette in the generator

Split complementary

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

  • #338EB5

    #338EB5

    oklch(61% 0.103 230.4)

  • #B96969

    #B96969

    oklch(61.1% 0.103 20.5)

  • #A37C32

    #A37C32

    oklch(61% 0.103 80.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338EB5

    #338EB5

    oklch(61% 0.103 230.4)

  • #B1698B

    #B1698B

    oklch(61% 0.101 350.8)

  • #878939

    #878939

    oklch(61.2% 0.103 110.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338EB5

    #338EB5

    oklch(61% 0.103 230.4)

  • #9F6EA9

    #9F6EA9

    oklch(61% 0.103 320.6)

  • #B47048

    #B47048

    oklch(61% 0.102 50.4)

  • #609257

    #609257

    oklch(60.9% 0.102 140.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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