#338CB3

Closest named color: Blue NCS (#118AB2). oklch(60.4% 0.102 230.9), rgb(51, 140, 179).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.102)
Temperaturecool
Nearest nameBlue NCS (#118AB2)
Black text5.54:1
White text3.78:1

Values

HEX#338CB3
RGBrgb(51, 140, 179)
HSLhsl(198, 56%, 45%)
OKLCHoklch(60.4% 0.102 230.9)

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 #338CB3 3.78:1 AA large text Lc -70.6 Content text, not long reading
Black text on #338CB3 5.54:1 AA Lc 39.0 Non-text elements, placeholder text
#338CB3 text on white 3.78:1 AA large text Lc 65.1 Content text, not long reading
#338CB3 text on black 5.54:1 AA Lc -36.6 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

    #C8DDE8

    oklch(88.5% 0.027 230.4)

  4. Step 300

    300

    #A1C7DB

    oklch(80.9% 0.049 231.1)

  5. Step 400

    400

    #6BAAC9

    oklch(70.7% 0.079 230.7)

  6. Step 500

    500 (this color)

    #338CB3

    oklch(60.4% 0.102 230.9)

  7. Step 600

    600

    #077EA8

    oklch(55.6% 0.111 231)

  8. Step 700

    700

    #006A8E

    oklch(49.1% 0.099 230.6)

  9. Step 800

    800

    #035775

    oklch(42.8% 0.085 230.7)

  10. Step 900

    900

    #12485E

    oklch(37.8% 0.066 229.9)

  11. Step 950

    950

    #0D2A37

    oklch(27% 0.042 230.5)

Export this scale for Tailwind in the Tailwind colors tool

#338CB3 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)#788AB50.069
Deuteranopia (no green cones)#677EB20.058
Tritanopia (no blue cones)#0097990.062
Achromatopsia (no color)#8383830.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #338CB3

    #338CB3

    oklch(60.4% 0.102 230.9)

  • #B26F46

    #B26F46

    oklch(60.5% 0.102 51.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338CB3

    #338CB3

    oklch(60.4% 0.102 230.9)

  • #08939A

    #08939A

    oklch(60.4% 0.101 200.8)

  • #5E81BE

    #5E81BE

    oklch(60.3% 0.102 261)

Open the analogous palette in the generator

Split complementary

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

  • #338CB3

    #338CB3

    oklch(60.4% 0.102 230.9)

  • #B66867

    #B66867

    oklch(60.5% 0.1 21.2)

  • #A17A31

    #A17A31

    oklch(60.4% 0.102 80.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338CB3

    #338CB3

    oklch(60.4% 0.102 230.9)

  • #AF6789

    #AF6789

    oklch(60.4% 0.101 350.8)

  • #848739

    #848739

    oklch(60.4% 0.101 111.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338CB3

    #338CB3

    oklch(60.4% 0.102 230.9)

  • #9D6DA7

    #9D6DA7

    oklch(60.5% 0.101 320.5)

  • #B26F46

    #B26F46

    oklch(60.5% 0.102 51.3)

  • #5E9156

    #5E9156

    oklch(60.5% 0.102 141.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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