#405160
Closest named color: Dark Slate Gray (#2F4F4F). oklch(42.7% 0.033 245.3), rgb(64, 81, 96).
Aa
White text reads best on this color (8.19:1).
About this color
#405160 is a dark, muted blue. In OKLCH its lightness is 43%, its chroma 0.033 and its hue 245°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.038 away. White text reads best on it, at 8.19:1.
| Hue family | Blues |
| Lightness | dark (43%) |
| Chroma | muted (0.033) |
| Temperature | cool |
| Nearest name | Dark Slate Gray (#2F4F4F) |
| Black text | 2.56:1 |
| White text | 8.19:1 |
Values
| HEX | #405160 |
| RGB | rgb(64, 81, 96) |
| HSL | hsl(208, 20%, 31%) |
| OKLCH | oklch(42.7% 0.033 245.3) |
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 #405160 | 8.19:1 | AAA | Lc -92.9 | Preferred for body text |
| Black text on #405160 | 2.56:1 | Fails | Lc 15.7 | Dividers and decoration only |
| #405160 text on white | 8.19:1 | AAA | Lc 88.3 | Fine for body text |
| #405160 text on black | 2.56:1 | Fails | Lc -13.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
#F4F6F7
oklch(97.2% 0.003 228.8)
-
Step 100
100
#E7EAED
oklch(93.6% 0.005 247.9)
-
Step 200
200
#D4DAE0
oklch(88.6% 0.011 247.9)
-
Step 300
300
#B7C2CC
oklch(80.9% 0.019 245.4)
-
Step 400
400
#91A3B3
oklch(70.7% 0.031 245.1)
-
Step 500
500
#768CA0
oklch(63% 0.039 245.9)
-
Step 600
600
#5F768B
oklch(55.5% 0.043 246.2)
-
Step 700
700
#4E6376
oklch(49% 0.04 246)
-
Step 800
800 (this color)
#405160
oklch(42.7% 0.033 245.3)
-
Step 900
900
#36434F
oklch(37.6% 0.027 246.4)
-
Step 950
950
#20272E
oklch(26.9% 0.016 248.4)
#405160 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) | #4B5161 | 0.016 |
| Deuteranopia (no green cones) | #474E60 | 0.013 |
| Tritanopia (no blue cones) | #365556 | 0.028 |
| Achromatopsia (no color) | #4F4F4F | 0.033 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #405160
#405160
oklch(42.7% 0.033 245.3)
- #5C4B3C
#5C4B3C
oklch(42.6% 0.033 63.2)
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 #405160, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Slate Gray #2F4F4F ΔE 0.038
- YInMn Blue #415A77 ΔE 0.041
- Dark Grey Blue #29465B ΔE 0.049
- Dusty Grape #545775 ΔE 0.049
- Charcoal #264653 ΔE 0.054
- Deep Teal #00555A ΔE 0.054
- Petrol #005F6A ΔE 0.057
- Dusk #4E5481 ΔE 0.060
Use #405160 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.