#403F9D
Closest named color: Blueberry (#464196). oklch(42.5% 0.149 278.5), rgb(64, 63, 157).
Aa
White text reads best on this color (8.69:1).
About this color
#403F9D is a dark, vivid blue. In OKLCH its lightness is 43%, its chroma 0.149 and its hue 278°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.016 away. White text reads best on it, at 8.69:1.
| Hue family | Blues |
| Lightness | dark (43%) |
| Chroma | vivid (0.149) |
| Temperature | cool |
| Nearest name | Blueberry (#464196) |
| Black text | 2.41:1 |
| White text | 8.69:1 |
Values
| HEX | #403F9D |
| RGB | rgb(64, 63, 157) |
| HSL | hsl(241, 43%, 43%) |
| OKLCH | oklch(42.5% 0.149 278.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 #403F9D | 8.69:1 | AAA | Lc -94.0 | Preferred for body text |
| Black text on #403F9D | 2.41:1 | Fails | Lc 14.6 | Not readable |
| #403F9D text on white | 8.69:1 | AAA | Lc 89.4 | Fine for body text |
| #403F9D text on black | 2.41:1 | Fails | Lc -12.8 | 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
#F3F5FD
oklch(97.1% 0.011 274.9)
-
Step 100
100
#E6E9FB
oklch(93.7% 0.024 278.4)
-
Step 200
200
#D1D7FA
oklch(88.6% 0.049 277.7)
-
Step 300
300
#B3BBF9
oklch(80.8% 0.088 278.5)
-
Step 400
400
#8E96F6
oklch(70.7% 0.14 278.6)
-
Step 500
500
#7479F2
oklch(63.2% 0.178 278.2)
-
Step 600
600
#5F5EE0
oklch(55.6% 0.193 278.4)
-
Step 700
700
#4F4CC3
oklch(49.1% 0.18 278.5)
-
Step 800
800 (this color)
#403F9D
oklch(42.5% 0.149 278.5)
-
Step 900
900
#36377D
oklch(37.7% 0.116 278.7)
-
Step 950
950
#1F2149
oklch(27% 0.073 278.2)
#403F9D 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) | #004FA0 | 0.060 |
| Deuteranopia (no green cones) | #00479B | 0.055 |
| Tritanopia (no blue cones) | #015668 | 0.129 |
| Achromatopsia (no color) | #4B4B4B | 0.149 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #403F9D
#403F9D
oklch(42.5% 0.149 278.5)
- #5B4E00
#5B4E00
oklch(42.4% 0.088 98.1)
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 #403F9D, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Blueberry #464196 ΔE 0.016
- Dark Slate Blue #483D8B ΔE 0.032
- Cobalt #1E488F ΔE 0.050
- Sapphire #2138AB ΔE 0.051
- Twilight #4E518B ΔE 0.065
- Dusk Blue #26538D ΔE 0.066
- Rebecca Purple #663399 ΔE 0.069
- Blue With A Hint Of Purple #533CC6 ΔE 0.072
Use #403F9D 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.