#170C37
Closest named color: Midnight Purple (#280137). oklch(20.1% 0.079 289), rgb(23, 12, 55).
Aa
White text reads best on this color (18.35:1).
About this color
#170C37 is a very dark, moderately saturated purple. In OKLCH its lightness is 20%, its chroma 0.079 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.045 away. White text reads best on it, at 18.35:1.
| Hue family | Purples |
| Lightness | very dark (20%) |
| Chroma | moderately saturated (0.079) |
| Temperature | cool |
| Nearest name | Midnight Purple (#280137) |
| Black text | 1.14:1 |
| White text | 18.35:1 |
Values
| HEX | #170C37 |
| RGB | rgb(23, 12, 55) |
| HSL | hsl(255, 64%, 13%) |
| OKLCH | oklch(20.1% 0.079 289) |
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 #170C37 | 18.35:1 | AAA | Lc -106.9 | Preferred for body text |
| Black text on #170C37 | 1.14:1 | Fails | Lc 0.0 | Not readable |
| #170C37 text on white | 18.35:1 | AAA | Lc 104.8 | Preferred for body text |
| #170C37 text on black | 1.14: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
#F5F4FE
oklch(97.1% 0.013 290.8)
-
Step 100
100
#E9E7FB
oklch(93.5% 0.027 290.5)
-
Step 200
200
#D7D4FA
oklch(88.4% 0.052 288.9)
-
Step 300
300
#BEB7FA
oklch(80.9% 0.094 288.9)
-
Step 400
400
#9F8FF7
oklch(70.8% 0.149 289.1)
-
Step 500
500
#896EF4
oklch(63% 0.193 288.9)
-
Step 600
600
#7552E2
oklch(55.6% 0.208 289)
-
Step 700
700
#6341C5
oklch(49.1% 0.194 289)
-
Step 800
800
#50379F
oklch(42.7% 0.16 288.8)
-
Step 900
900
#42317E
oklch(37.7% 0.125 289.2)
-
Step 950
950 (this color)
#170C37
oklch(20.1% 0.079 289)
#170C37 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) | #001538 | 0.042 |
| Deuteranopia (no green cones) | #001336 | 0.041 |
| Tritanopia (no blue cones) | #0C1720 | 0.064 |
| Achromatopsia (no color) | #141414 | 0.080 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #170C37
#170C37
oklch(20.1% 0.079 289)
- #181800
#181800
oklch(20.2% 0.044 109.8)
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 #170C37, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Purple #280137 ΔE 0.045
- Navy Blue #001146 ΔE 0.048
- Very Dark Purple #2A0134 ΔE 0.050
- Night Blue #040348 ΔE 0.055
- Dark Indigo #1F0954 ΔE 0.057
- Rich Black #0D1B2A ΔE 0.058
- Dark Navy #000435 ΔE 0.058
- Midnight #03012D ΔE 0.066
Use #170C37 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.