#40497B
Closest named color: Twilight (#4E518B). oklch(42.2% 0.084 274.5), rgb(64, 73, 123).
Aa
White text reads best on this color (8.54:1).
About this color
#40497B is a dark, moderately saturated blue. In OKLCH its lightness is 42%, its chroma 0.084 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.040 away. White text reads best on it, at 8.54:1.
| Hue family | Blues |
| Lightness | dark (42%) |
| Chroma | moderately saturated (0.084) |
| Temperature | cool |
| Nearest name | Twilight (#4E518B) |
| Black text | 2.45:1 |
| White text | 8.54:1 |
Values
| HEX | #40497B |
| RGB | rgb(64, 73, 123) |
| HSL | hsl(231, 32%, 37%) |
| OKLCH | oklch(42.2% 0.084 274.5) |
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 #40497B | 8.54:1 | AAA | Lc -93.8 | Preferred for body text |
| Black text on #40497B | 2.45:1 | Fails | Lc 14.7 | Not readable |
| #40497B text on white | 8.54:1 | AAA | Lc 89.3 | Fine for body text |
| #40497B text on black | 2.45:1 | Fails | Lc -12.9 | 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
#F4F5FA
oklch(97.1% 0.007 277.2)
-
Step 100
100
#E7E9F4
oklch(93.6% 0.015 277.8)
-
Step 200
200
#D3D8EC
oklch(88.4% 0.028 274.6)
-
Step 300
300
#B7BFE1
oklch(81% 0.049 274.8)
-
Step 400
400
#929DD2
oklch(70.7% 0.079 275.1)
-
Step 500
500
#7784C6
oklch(63% 0.101 274.7)
-
Step 600
600
#606DB3
oklch(55.6% 0.11 274.3)
-
Step 700
700
#505B9A
oklch(49.2% 0.102 274.6)
-
Step 800
800 (this color)
#40497B
oklch(42.2% 0.084 274.5)
-
Step 900
900
#373E64
oklch(37.6% 0.066 274.9)
-
Step 950
950
#20253B
oklch(27.1% 0.042 273.5)
#40497B 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) | #364F7D | 0.020 |
| Deuteranopia (no green cones) | #314A7A | 0.020 |
| Tritanopia (no blue cones) | #2B535C | 0.073 |
| Achromatopsia (no color) | #4C4C4C | 0.084 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40497B
#40497B
oklch(42.2% 0.084 274.5)
- #5C4C05
#5C4C05
oklch(42.1% 0.084 94.5)
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 #40497B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Twilight #4E518B ΔE 0.040
- Dusk #4E5481 ΔE 0.040
- Dusk Blue #26538D ΔE 0.044
- Light Navy #155084 ΔE 0.045
- Dark Slate Blue #483D8B ΔE 0.046
- Cobalt #1E488F ΔE 0.051
- Light Navy Blue #2E5A88 ΔE 0.051
- Blueberry #464196 ΔE 0.053
Use #40497B 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.