#40799F

Closest named color: Cerulean (#457B9D). oklch(55.4% 0.084 239.9), rgb(64, 121, 159).

Aa

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

About this color

#40799F is a medium-dark, moderately saturated blue. In OKLCH its lightness is 55%, its chroma 0.084 and its hue 240°. 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.71:1.

Hue familyBlues
Lightnessmedium-dark (55%)
Chromamoderately saturated (0.084)
Temperaturecool
Nearest nameCerulean (#457B9D)
Black text4.45:1
White text4.71:1

Values

HEX#40799F
RGBrgb(64, 121, 159)
HSLhsl(204, 43%, 44%)
OKLCHoklch(55.4% 0.084 239.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 #40799F 4.71:1 AA Lc -78.0 Fine for body text
Black text on #40799F 4.45:1 AA large text Lc 31.5 Non-text elements, placeholder text
#40799F text on white 4.71:1 AA Lc 72.6 Content text, not long reading
#40799F text on black 4.45: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

    #F2F6F9

    oklch(97.1% 0.006 239.8)

  2. Step 100

    100

    #E4EBF1

    oklch(93.6% 0.011 243.7)

  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

    #7EA6C3

    oklch(70.6% 0.061 240.2)

  6. Step 500

    500

    #5C90B4

    oklch(63.1% 0.078 239.9)

  7. Step 600

    600 (this color)

    #40799F

    oklch(55.4% 0.084 239.9)

  8. Step 700

    700

    #326689

    oklch(49% 0.079 240.5)

  9. Step 800

    800

    #2A546F

    oklch(42.8% 0.065 239)

  10. Step 900

    900

    #27455A

    oklch(37.7% 0.051 240.5)

  11. Step 950

    950

    #172935

    oklch(27.1% 0.033 238.8)

Export this scale for Tailwind in the Tailwind colors tool

#40799F 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)#6879A10.046
Deuteranopia (no green cones)#5B6F9E0.038
Tritanopia (no blue cones)#0083860.065
Achromatopsia (no color)#7373730.084

Harmonies

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

Complementary

The opposite hue (180°).

  • #40799F

    #40799F

    oklch(55.4% 0.084 239.9)

  • #97663D

    #97663D

    oklch(55.3% 0.085 59.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40799F

    #40799F

    oklch(55.4% 0.084 239.9)

  • #25808E

    #25808E

    oklch(55.4% 0.085 210)

  • #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°).

  • #40799F

    #40799F

    oklch(55.4% 0.084 239.9)

  • #9E5F55

    #9E5F55

    oklch(55.3% 0.084 29.7)

  • #867033

    #867033

    oklch(55.3% 0.085 89.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40799F

    #40799F

    oklch(55.4% 0.084 239.9)

  • #9B5D71

    #9B5D71

    oklch(55.4% 0.085 359.5)

  • #6C7A3F

    #6C7A3F

    oklch(55.4% 0.084 120.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40799F

    #40799F

    oklch(55.4% 0.084 239.9)

  • #8F608A

    #8F608A

    oklch(55.4% 0.085 330.4)

  • #97663D

    #97663D

    oklch(55.3% 0.085 59.7)

  • #4D8158

    #4D8158

    oklch(55.5% 0.085 149.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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