#172227
Closest named color: Dark (#1B2431). oklch(24.4% 0.018 227.6), rgb(23, 34, 39).
Aa
White text reads best on this color (16.22:1).
About this color
#172227 is a very dark close to neutral grey. In OKLCH its lightness is 24%, its chroma 0.018. It has too little chroma to lean warm or cool. The nearest named color is Dark (#1B2431), ΔE 0.021 away. White text reads best on it, at 16.22:1.
| Hue family | Neutrals |
| Lightness | very dark (24%) |
| Chroma | close to neutral grey (0.018) |
| Temperature | neutral |
| Nearest name | Dark (#1B2431) |
| Black text | 1.29:1 |
| White text | 16.22:1 |
Values
| HEX | #172227 |
| RGB | rgb(23, 34, 39) |
| HSL | hsl(199, 26%, 12%) |
| OKLCH | oklch(24.4% 0.018 227.6) |
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 #172227 | 16.22:1 | AAA | Lc -105.7 | Preferred for body text |
| Black text on #172227 | 1.29:1 | Fails | Lc 0.0 | Not readable |
| #172227 text on white | 16.22:1 | AAA | Lc 103.2 | Preferred for body text |
| #172227 text on black | 1.29: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
#F3F6F7
oklch(97.1% 0.003 219.5)
-
Step 100
100
#E6EBED
oklch(93.7% 0.006 223.5)
-
Step 200
200
#D1DBDF
oklch(88.5% 0.012 223.5)
-
Step 300
300
#B3C4CC
oklch(81% 0.022 227.6)
-
Step 400
400
#8BA5B2
oklch(70.6% 0.035 229.5)
-
Step 500
500
#6E8F9F
oklch(63.1% 0.044 229.1)
-
Step 600
600
#557989
oklch(55.5% 0.048 227.4)
-
Step 700
700
#456675
oklch(49.1% 0.045 228.1)
-
Step 800
800
#39535F
oklch(42.6% 0.037 228.3)
-
Step 900
900
#31454E
oklch(37.7% 0.029 227.5)
-
Step 950
950 (this color)
#172227
oklch(24.4% 0.018 227.6)
#172227 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) | #1F2127 | 0.013 |
| Deuteranopia (no green cones) | #1D2027 | 0.012 |
| Tritanopia (no blue cones) | #122324 | 0.011 |
| Achromatopsia (no color) | #202020 | 0.018 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #172227
#172227
oklch(24.4% 0.018 227.6)
- #281E19
#281E19
oklch(24.5% 0.018 48)
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 #172227, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark #1B2431 ΔE 0.021
- Jet #212529 ΔE 0.021
- Rich Black #0D1B2A ΔE 0.033
- Oxford Blue #1B263B ΔE 0.039
- Space Cadet #2B2D42 ΔE 0.068
- Dark Brown #341C02 ΔE 0.072
- Gunmetal #293241 ΔE 0.074
- Rich Navy #001219 ΔE 0.076
Use #172227 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.