#40438E
Closest named color: Blueberry (#464196). oklch(42.2% 0.122 278.1), rgb(64, 67, 142).
Aa
White text reads best on this color (8.70:1).
About this color
#40438E is a dark, moderately saturated blue. In OKLCH its lightness is 42%, its chroma 0.122 and its hue 278°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.017 away. White text reads best on it, at 8.70:1.
| Hue family | Blues |
| Lightness | dark (42%) |
| Chroma | moderately saturated (0.122) |
| Temperature | cool |
| Nearest name | Blueberry (#464196) |
| Black text | 2.41:1 |
| White text | 8.70:1 |
Values
| HEX | #40438E |
| RGB | rgb(64, 67, 142) |
| HSL | hsl(238, 38%, 40%) |
| OKLCH | oklch(42.2% 0.122 278.1) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #40438E | 8.70:1 | AAA | Lc -94.1 | Preferred for body text |
| Black text on #40438E | 2.41:1 | Fails | Lc 14.4 | Not readable |
| #40438E text on white | 8.70:1 | AAA | Lc 89.6 | Fine for body text |
| #40438E text on black | 2.41:1 | Fails | Lc -12.6 | Not readable |
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 800.
-
Step 50
50
#F4F5FC
oklch(97.1% 0.009 279.7)
-
Step 100
100
#E6E9F8
oklch(93.6% 0.02 276.9)
-
Step 200
200
#D2D7F4
oklch(88.4% 0.04 277.8)
-
Step 300
300
#B5BDEF
oklch(80.9% 0.071 277.6)
-
Step 400
400
#9099E7
oklch(70.7% 0.114 278)
-
Step 500
500
#767EDF
oklch(63.1% 0.145 277.8)
-
Step 600
600
#6065CD
oklch(55.6% 0.158 277.9)
-
Step 700
700
#5053B2
oklch(49.1% 0.148 278.1)
-
Step 800
800 (this color)
#40438E
oklch(42.2% 0.122 278.1)
-
Step 900
900
#373A73
oklch(37.6% 0.096 278.5)
-
Step 950
950
#202343
oklch(27.1% 0.059 277.6)
#40438E 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #1C4E91 | 0.045 |
| Deuteranopia (no green cones) | #11488C | 0.049 |
| Tritanopia (no blue cones) | #1C5462 | 0.106 |
| Achromatopsia (no color) | #4B4B4B | 0.122 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40438E
#40438E
oklch(42.2% 0.122 278.1)
- #5A4D00
#5A4D00
oklch(42.1% 0.087 98)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #40438E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Blueberry #464196 ΔE 0.017
- Dark Slate Blue #483D8B ΔE 0.019
- Cobalt #1E488F ΔE 0.040
- Twilight #4E518B ΔE 0.047
- Dusk Blue #26538D ΔE 0.050
- Light Navy #155084 ΔE 0.058
- Dusk #4E5481 ΔE 0.062
- Denim Blue #3B5B92 ΔE 0.066
Use #40438E 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.