#340C43
Closest named color: Dark Purple (#35063E). oklch(25.4% 0.102 315), rgb(52, 12, 67).
Aa
White text reads best on this color (16.41:1).
About this color
#340C43 is a dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.102 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.014 away. White text reads best on it, at 16.41:1.
| Hue family | Purples |
| Lightness | dark (25%) |
| Chroma | moderately saturated (0.102) |
| Temperature | in between |
| Nearest name | Dark Purple (#35063E) |
| Black text | 1.27:1 |
| White text | 16.41:1 |
Values
| HEX | #340C43 |
| RGB | rgb(52, 12, 67) |
| HSL | hsl(284, 70%, 15%) |
| OKLCH | oklch(25.4% 0.102 315) |
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 #340C43 | 16.41:1 | AAA | Lc -105.4 | Preferred for body text |
| Black text on #340C43 | 1.27:1 | Fails | Lc 0.0 | Not readable |
| #340C43 text on white | 16.41:1 | AAA | Lc 102.8 | Preferred for body text |
| #340C43 text on black | 1.27:1 | Fails | Lc 0.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 950.
-
Step 50
50
#FAF2FD
oklch(97% 0.017 316.9)
-
Step 100
100
#F3E3FA
oklch(93.5% 0.035 315.7)
-
Step 200
200
#EACCF8
oklch(88.4% 0.067 315)
-
Step 300
300
#DEA9F6
oklch(81% 0.12 315)
-
Step 400
400
#CD75F1
oklch(70.7% 0.193 315.3)
-
Step 500
500
#BF47EC
oklch(63.2% 0.245 315.1)
-
Step 600
600
#AA10DA
oklch(55.5% 0.267 315)
-
Step 700
700
#9100BB
oklch(49.1% 0.242 315)
-
Step 800
800
#770799
oklch(42.7% 0.206 315.2)
-
Step 900
900
#60177A
oklch(37.7% 0.161 315.1)
-
Step 950
950 (this color)
#340C43
oklch(25.4% 0.102 315)
#340C43 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) | #001D45 | 0.093 |
| Deuteranopia (no green cones) | #0A2042 | 0.085 |
| Tritanopia (no blue cones) | #331826 | 0.067 |
| Achromatopsia (no color) | #1F1F1F | 0.103 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #340C43
#340C43
oklch(25.4% 0.102 315)
- #112A00
#112A00
oklch(25.5% 0.074 135.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 #340C43, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Purple #35063E ΔE 0.014
- Deep Purple #36013F ΔE 0.020
- Eggplant #380835 ΔE 0.029
- Eggplant Purple #430541 ΔE 0.036
- Aubergine #3D0734 ΔE 0.037
- Very Dark Purple #2A0134 ΔE 0.044
- Midnight Purple #280137 ΔE 0.045
- Deep Violet #490648 ΔE 0.049
Use #340C43 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.