#40788F

Closest named color: Metallic Blue (#4F738E). oklch(54.4% 0.069 226.9), rgb(64, 120, 143).

Aa

White text reads best on this color (4.88:1).

About this color

#40788F is a medium-dark, muted teal or cyan. In OKLCH its lightness is 54%, its chroma 0.069 and its hue 227°. Its hue sits on the cool side of the wheel. The nearest named color is Metallic Blue (#4F738E), ΔE 0.020 away. White text reads best on it, at 4.88:1.

Hue familyTeals and cyans
Lightnessmedium-dark (54%)
Chromamuted (0.069)
Temperaturecool
Nearest nameMetallic Blue (#4F738E)
Black text4.30:1
White text4.88:1

Values

HEX#40788F
RGBrgb(64, 120, 143)
HSLhsl(197, 38%, 41%)
OKLCHoklch(54.4% 0.069 226.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 #40788F 4.88:1 AA Lc -79.1 Fine for body text
Black text on #40788F 4.30:1 AA large text Lc 30.4 Non-text elements, placeholder text
#40788F text on white 4.88:1 AA Lc 73.7 Content text, not long reading
#40788F text on black 4.30:1 AA large text Lc -28.0 Dividers and decoration only

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 600.

  1. Step 50

    50

    #F3F6F8

    oklch(97.1% 0.004 236.5)

  2. Step 100

    100

    #E4EBEE

    oklch(93.6% 0.009 225.1)

  3. Step 200

    200

    #CEDCE2

    oklch(88.6% 0.017 225.2)

  4. Step 300

    300

    #ADC5D0

    oklch(80.9% 0.03 227.1)

  5. Step 400

    400

    #80A7B9

    oklch(70.6% 0.05 227.9)

  6. Step 500

    500

    #5F92A7

    oklch(63.2% 0.063 225.9)

  7. Step 600

    600 (this color)

    #40788F

    oklch(54.4% 0.069 226.9)

  8. Step 700

    700

    #35687D

    oklch(49.1% 0.064 227.1)

  9. Step 800

    800

    #2D5566

    oklch(42.8% 0.053 227.6)

  10. Step 900

    900

    #294653

    oklch(37.7% 0.041 228.3)

  11. Step 950

    950

    #182930

    oklch(26.9% 0.026 225.8)

Export this scale for Tailwind in the Tailwind colors tool

#40788F 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)#6C76900.052
Deuteranopia (no green cones)#606D8F0.046
Tritanopia (no blue cones)#037F7F0.050
Achromatopsia (no color)#7171710.069

Harmonies

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

Complementary

The opposite hue (180°).

  • #40788F

    #40788F

    oklch(54.4% 0.069 226.9)

  • #91634D

    #91634D

    oklch(54.3% 0.068 46.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40788F

    #40788F

    oklch(54.4% 0.069 226.9)

  • #387C7D

    #387C7D

    oklch(54.3% 0.068 196.6)

  • #567198

    #567198

    oklch(54.4% 0.069 257.5)

Open the analogous palette in the generator

Split complementary

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

  • #40788F

    #40788F

    oklch(54.4% 0.069 226.9)

  • #945F61

    #945F61

    oklch(54.4% 0.07 17.1)

  • #876B40

    #876B40

    oklch(54.5% 0.069 77.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40788F

    #40788F

    oklch(54.4% 0.069 226.9)

  • #8E5F78

    #8E5F78

    oklch(54.4% 0.07 346.5)

  • #747342

    #747342

    oklch(54.4% 0.069 107.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40788F

    #40788F

    oklch(54.4% 0.069 226.9)

  • #80638B

    #80638B

    oklch(54.3% 0.07 316.6)

  • #91634D

    #91634D

    oklch(54.3% 0.068 46.4)

  • #5D7951

    #5D7951

    oklch(54.3% 0.068 136.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40788F 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.