#40475B
Closest named color: Dark Grey Blue (#29465B). oklch(40% 0.035 269.7), rgb(64, 71, 91).
Aa
White text reads best on this color (9.24:1).
About this color
#40475B is a dark, muted blue. In OKLCH its lightness is 40%, its chroma 0.035 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.032 away. White text reads best on it, at 9.24:1.
| Hue family | Blues |
| Lightness | dark (40%) |
| Chroma | muted (0.035) |
| Temperature | cool |
| Nearest name | Dark Grey Blue (#29465B) |
| Black text | 2.27:1 |
| White text | 9.24:1 |
Values
| HEX | #40475B |
| RGB | rgb(64, 71, 91) |
| HSL | hsl(224, 17%, 30%) |
| OKLCH | oklch(40% 0.035 269.7) |
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 #40475B | 9.24:1 | AAA | Lc -95.7 | Preferred for body text |
| Black text on #40475B | 2.27:1 | Fails | Lc 12.6 | Not readable |
| #40475B text on white | 9.24:1 | AAA | Lc 91.3 | Preferred for body text |
| #40475B text on black | 2.27:1 | Fails | Lc -11.0 | 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 900.
-
Step 50
50
#F4F5F8
oklch(97% 0.004 271.4)
-
Step 100
100
#E8EAEF
oklch(93.7% 0.007 268.5)
-
Step 200
200
#D5D9E3
oklch(88.5% 0.014 268.5)
-
Step 300
300
#BAC0D2
oklch(80.9% 0.026 271.1)
-
Step 400
400
#96A0BC
oklch(70.7% 0.043 269.8)
-
Step 500
500
#7C88AB
oklch(63% 0.055 270)
-
Step 600
600
#667296
oklch(55.6% 0.058 270.2)
-
Step 700
700
#545F80
oklch(49% 0.055 270)
-
Step 800
800
#454E68
oklch(42.7% 0.045 269.6)
-
Step 900
900 (this color)
#40475B
oklch(40% 0.035 269.7)
-
Step 950
950
#222632
oklch(27% 0.023 270.4)
#40475B 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) | #41495C | 0.006 |
| Deuteranopia (no green cones) | #3F465B | 0.004 |
| Tritanopia (no blue cones) | #394B4E | 0.031 |
| Achromatopsia (no color) | #474747 | 0.035 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40475B
#40475B
oklch(40% 0.035 269.7)
- #4F4732
#4F4732
oklch(40% 0.035 89.6)
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 #40475B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Grey Blue #29465B ΔE 0.032
- Charcoal #264653 ΔE 0.039
- Charcoal Grey #3C4142 ΔE 0.043
- Dark Slate Gray #2F4F4F ΔE 0.044
- Onyx #343A40 ΔE 0.059
- YInMn Blue #415A77 ΔE 0.065
- Deep Teal #00555A ΔE 0.066
- Dark Blue Grey #1F3B4D ΔE 0.066
Use #40475B 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.