#40628D

Closest named color: Denim (#3B638C). oklch(49% 0.08 254.9), rgb(64, 98, 141).

Aa

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

About this color

#40628D is a medium-dark, moderately saturated blue. In OKLCH its lightness is 49%, its chroma 0.080 and its hue 255°. Its hue sits on the cool side of the wheel. The nearest named color is Denim (#3B638C), ΔE 0.006 away. White text reads best on it, at 6.26:1.

Hue familyBlues
Lightnessmedium-dark (49%)
Chromamoderately saturated (0.080)
Temperaturecool
Nearest nameDenim (#3B638C)
Black text3.34:1
White text6.26:1

Values

HEX#40628D
RGBrgb(64, 98, 141)
HSLhsl(214, 38%, 40%)
OKLCHoklch(49% 0.08 254.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 #40628D 6.26:1 AA Lc -86.3 Fine for body text
Black text on #40628D 3.34:1 AA large text Lc 22.9 Dividers and decoration only
#40628D text on white 6.26:1 AA Lc 81.1 Fine for body text
#40628D text on black 3.34:1 AA large text Lc -20.7 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 700.

  1. Step 50

    50

    #F3F6F9

    oklch(97.2% 0.005 247.9)

  2. Step 100

    100

    #E5EAF1

    oklch(93.5% 0.011 256.7)

  3. Step 200

    200

    #D0DAE8

    oklch(88.5% 0.022 256.7)

  4. Step 300

    300

    #B0C2DA

    oklch(80.8% 0.039 255.6)

  5. Step 400

    400

    #87A3C7

    oklch(70.7% 0.062 254.9)

  6. Step 500

    500

    #688CB9

    oklch(63.1% 0.079 254.4)

  7. Step 600

    600

    #5075A5

    oklch(55.5% 0.086 255.3)

  8. Step 700

    700 (this color)

    #40628D

    oklch(49% 0.08 254.9)

  9. Step 800

    800

    #355073

    oklch(42.6% 0.067 255.3)

  10. Step 900

    900

    #2E435D

    oklch(37.7% 0.052 254.2)

  11. Step 950

    950

    #1B2736

    oklch(26.9% 0.033 254.4)

Export this scale for Tailwind in the Tailwind colors tool

#40628D 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)#51648F0.023
Deuteranopia (no green cones)#475D8C0.016
Tritanopia (no blue cones)#156C710.071
Achromatopsia (no color)#6060600.080

Harmonies

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

Complementary

The opposite hue (180°).

  • #40628D

    #40628D

    oklch(49% 0.08 254.9)

  • #7B5927

    #7B5927

    oklch(48.9% 0.08 74.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40628D

    #40628D

    oklch(49% 0.08 254.9)

  • #206A82

    #206A82

    oklch(49.1% 0.08 223.9)

  • #5C5A8C

    #5C5A8C

    oklch(49.1% 0.079 284.9)

Open the analogous palette in the generator

Split complementary

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

  • #40628D

    #40628D

    oklch(49% 0.08 254.9)

  • #865139

    #865139

    oklch(49% 0.08 44.8)

  • #676328

    #676328

    oklch(49% 0.08 105.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40628D

    #40628D

    oklch(49% 0.08 254.9)

  • #884D52

    #884D52

    oklch(49.1% 0.08 15)

  • #4C6A3B

    #4C6A3B

    oklch(48.8% 0.079 135)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40628D

    #40628D

    oklch(49% 0.08 254.9)

  • #804D6B

    #804D6B

    oklch(48.9% 0.08 344.3)

  • #7B5927

    #7B5927

    oklch(48.9% 0.08 74.4)

  • #2C6F55

    #2C6F55

    oklch(49.1% 0.08 164.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40628D 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.