#338FB8

Closest named color: Blue NCS (#118AB2). oklch(61.4% 0.105 231.5), rgb(51, 143, 184).

Aa

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

About this color

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

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

Values

HEX#338FB8
RGBrgb(51, 143, 184)
HSLhsl(198, 57%, 46%)
OKLCHoklch(61.4% 0.105 231.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 #338FB8 3.64:1 AA large text Lc -69.2 Content text, not long reading
Black text on #338FB8 5.76:1 AA Lc 40.4 Non-text elements, placeholder text
#338FB8 text on white 3.64:1 AA large text Lc 63.7 Content text, not long reading
#338FB8 text on black 5.76:1 AA Lc -38.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

    #F1F6F9

    oklch(97% 0.007 233.6)

  2. Step 100

    100

    #E1ECF2

    oklch(93.7% 0.014 231.2)

  3. Step 200

    200

    #C7DDE9

    oklch(88.5% 0.029 231.5)

  4. Step 300

    300

    #A0C7DC

    oklch(80.8% 0.051 231.7)

  5. Step 400

    400

    #69AACB

    oklch(70.7% 0.082 231.7)

  6. Step 500

    500 (this color)

    #338FB8

    oklch(61.4% 0.105 231.5)

  7. Step 600

    600

    #007EA9

    oklch(55.6% 0.112 231.2)

  8. Step 700

    700

    #006A8F

    oklch(49.2% 0.1 231.3)

  9. Step 800

    800

    #005776

    oklch(42.8% 0.087 231.2)

  10. Step 900

    900

    #10485F

    oklch(37.8% 0.068 230.5)

  11. Step 950

    950

    #0C2A38

    oklch(27% 0.044 231.9)

Export this scale for Tailwind in the Tailwind colors tool

#338FB8 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)#7A8DBA0.070
Deuteranopia (no green cones)#6880B70.060
Tritanopia (no blue cones)#009A9D0.063
Achromatopsia (no color)#8686860.105

Harmonies

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

Complementary

The opposite hue (180°).

  • #338FB8

    #338FB8

    oklch(61.4% 0.105 231.5)

  • #B67146

    #B67146

    oklch(61.4% 0.105 51.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338FB8

    #338FB8

    oklch(61.4% 0.105 231.5)

  • #00979F

    #00979F

    oklch(61.5% 0.105 201.4)

  • #6184C3

    #6184C3

    oklch(61.4% 0.104 261.6)

Open the analogous palette in the generator

Split complementary

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

  • #338FB8

    #338FB8

    oklch(61.4% 0.105 231.5)

  • #BB6968

    #BB6968

    oklch(61.3% 0.105 21.3)

  • #A47D30

    #A47D30

    oklch(61.3% 0.105 81.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338FB8

    #338FB8

    oklch(61.4% 0.105 231.5)

  • #B4698C

    #B4698C

    oklch(61.5% 0.105 351.2)

  • #878A39

    #878A39

    oklch(61.4% 0.104 111.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338FB8

    #338FB8

    oklch(61.4% 0.105 231.5)

  • #A16FAA

    #A16FAA

    oklch(61.4% 0.103 321.3)

  • #B67146

    #B67146

    oklch(61.4% 0.105 51.6)

  • #5F9458

    #5F9458

    oklch(61.4% 0.104 141.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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