#40799E

Closest named color: Cerulean (#457B9D). oklch(55.3% 0.083 239.2), rgb(64, 121, 158).

Aa

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

About this color

#40799E is a medium-dark, moderately saturated blue. In OKLCH its lightness is 55%, its chroma 0.083 and its hue 239°. Its hue sits on the cool side of the wheel. The nearest named color is Cerulean (#457B9D), ΔE 0.009 away. White text reads best on it, at 4.72:1.

Hue familyBlues
Lightnessmedium-dark (55%)
Chromamoderately saturated (0.083)
Temperaturecool
Nearest nameCerulean (#457B9D)
Black text4.44:1
White text4.72:1

Values

HEX#40799E
RGBrgb(64, 121, 158)
HSLhsl(204, 42%, 44%)
OKLCHoklch(55.3% 0.083 239.2)

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 #40799E 4.72:1 AA Lc -78.1 Fine for body text
Black text on #40799E 4.44:1 AA large text Lc 31.5 Non-text elements, placeholder text
#40799E text on white 4.72:1 AA Lc 72.6 Content text, not long reading
#40799E text on black 4.44:1 AA large text Lc -29.1 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

    #F2F6F8

    oklch(97.1% 0.005 228.8)

  2. Step 100

    100

    #E4EBF0

    oklch(93.6% 0.01 238.5)

  3. Step 200

    200

    #CDDBE6

    oklch(88.4% 0.021 241.4)

  4. Step 300

    300

    #ABC5D7

    oklch(81% 0.038 238.2)

  5. Step 400

    400

    #7EA6C2

    oklch(70.6% 0.06 239.2)

  6. Step 500

    500

    #5C90B3

    oklch(63.1% 0.077 239.1)

  7. Step 600

    600 (this color)

    #40799E

    oklch(55.3% 0.083 239.2)

  8. Step 700

    700

    #326688

    oklch(49% 0.078 239.7)

  9. Step 800

    800

    #2B546E

    oklch(42.8% 0.063 238.5)

  10. Step 900

    900

    #274559

    oklch(37.6% 0.05 239.2)

  11. Step 950

    950

    #172934

    oklch(27.1% 0.031 236.4)

Export this scale for Tailwind in the Tailwind colors tool

#40799E 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)#6879A00.046
Deuteranopia (no green cones)#5B6F9D0.038
Tritanopia (no blue cones)#0082850.064
Achromatopsia (no color)#7373730.083

Harmonies

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

Complementary

The opposite hue (180°).

  • #40799E

    #40799E

    oklch(55.3% 0.083 239.2)

  • #97663E

    #97663E

    oklch(55.3% 0.084 59)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40799E

    #40799E

    oklch(55.3% 0.083 239.2)

  • #27808D

    #27808D

    oklch(55.4% 0.083 209.1)

  • #5F70A4

    #5F70A4

    oklch(55.3% 0.084 269.7)

Open the analogous palette in the generator

Split complementary

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

  • #40799E

    #40799E

    oklch(55.3% 0.083 239.2)

  • #9D5F56

    #9D5F56

    oklch(55.2% 0.083 28.9)

  • #867034

    #867034

    oklch(55.3% 0.084 89.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40799E

    #40799E

    oklch(55.3% 0.083 239.2)

  • #9A5D71

    #9A5D71

    oklch(55.2% 0.083 359.1)

  • #6D793F

    #6D793F

    oklch(55.2% 0.083 118.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40799E

    #40799E

    oklch(55.3% 0.083 239.2)

  • #8E608A

    #8E608A

    oklch(55.3% 0.084 329.7)

  • #97663E

    #97663E

    oklch(55.3% 0.084 59)

  • #4E8057

    #4E8057

    oklch(55.3% 0.083 148.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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