#40878E

Closest named color: Dark Cyan (#008B8B). oklch(58.1% 0.072 204), rgb(64, 135, 142).

Aa

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

About this color

#40878E is a medium-dark, moderately saturated teal or cyan. In OKLCH its lightness is 58%, its chroma 0.072 and its hue 204°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Cyan (#008B8B), ΔE 0.030 away. Black text reads best on it, at 5.07:1.

Hue familyTeals and cyans
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.072)
Temperaturecool
Nearest nameDark Cyan (#008B8B)
Black text5.07:1
White text4.13:1

Values

HEX#40878E
RGBrgb(64, 135, 142)
HSLhsl(185, 38%, 40%)
OKLCHoklch(58.1% 0.072 204)

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 #40878E 4.13:1 AA large text Lc -73.8 Content text, not long reading
Black text on #40878E 5.07:1 AA Lc 35.8 Non-text elements, placeholder text
#40878E text on white 4.13:1 AA large text Lc 68.3 Content text, not long reading
#40878E text on black 5.07:1 AA Lc -33.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 600.

  1. Step 50

    50

    #F2F6F7

    oklch(97% 0.004 214.3)

  2. Step 100

    100

    #E3ECED

    oklch(93.7% 0.01 204.9)

  3. Step 200

    200

    #CCDDDE

    oklch(88.5% 0.018 201.1)

  4. Step 300

    300

    #A9C7CA

    oklch(80.8% 0.033 203.9)

  5. Step 400

    400

    #7AAAAF

    oklch(70.6% 0.052 204.2)

  6. Step 500

    500

    #56959C

    oklch(63% 0.066 204.8)

  7. Step 600

    600 (this color)

    #40878E

    oklch(58.1% 0.072 204)

  8. Step 700

    700

    #2A6C72

    oklch(49.2% 0.067 203.5)

  9. Step 800

    800

    #24585D

    oklch(42.8% 0.055 203.9)

  10. Step 900

    900

    #23484C

    oklch(37.6% 0.043 204.7)

  11. Step 950

    950

    #152A2D

    oklch(26.9% 0.027 207.4)

Export this scale for Tailwind in the Tailwind colors tool

#40878E 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)#7E828F0.072
Deuteranopia (no green cones)#71798E0.065
Tritanopia (no blue cones)#008C890.033
Achromatopsia (no color)#7D7D7D0.072

Harmonies

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

Complementary

The opposite hue (180°).

  • #40878E

    #40878E

    oklch(58.1% 0.072 204)

  • #A16A66

    #A16A66

    oklch(58.2% 0.071 24.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40878E

    #40878E

    oklch(58.1% 0.072 204)

  • #498977

    #498977

    oklch(58.2% 0.072 173.4)

  • #4D829F

    #4D829F

    oklch(58.1% 0.072 233.8)

Open the analogous palette in the generator

Split complementary

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

  • #40878E

    #40878E

    oklch(58.1% 0.072 204)

  • #9D697D

    #9D697D

    oklch(58.2% 0.072 354.8)

  • #9C6F51

    #9C6F51

    oklch(58% 0.072 54.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40878E

    #40878E

    oklch(58.1% 0.072 204)

  • #906C93

    #906C93

    oklch(58.1% 0.072 323.9)

  • #8F7747

    #8F7747

    oklch(58.1% 0.072 83.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40878E

    #40878E

    oklch(58.1% 0.072 204)

  • #7D72A1

    #7D72A1

    oklch(58% 0.072 294.8)

  • #A16A66

    #A16A66

    oklch(58.2% 0.071 24.1)

  • #7A804D

    #7A804D

    oklch(58.2% 0.072 114.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40878E 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.