#0F172A
Tailwind slate-900
#0F172A is a blue colour. In RGB it is 15 red, 23 green and 42 blue, which converts to a hue of 222 degrees, 47% saturation and 11% lightness. It is Tailwind slate-900 in that design system's palette.
Color values
| HEX | #0F172A |
|---|---|
| RGB | rgb(15, 23, 42) |
| HSL | hsl(222, 47%, 11%) |
| HSV | hsv(222, 64%, 16%) |
| CMYK | cmyk(64%, 45%, 0%, 84%) |
Contrast and accessibility
Against white the contrast ratio is 17.85:1, and against black it is 1.18:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 17.85:1 | AAA | AAA |
| Black | 1.18:1 | Fail | Fail |
Tints and shades
Lighter tints move #0F172A toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #0F172A; |
|---|---|
| CSS rgb() | color: rgb(15 23 42); |
| Tailwind | bg-[#0f172a] |
| SwiftUI | Color(red: 0.059, green: 0.090, blue: 0.165) |
| Android | Color.parseColor("#0F172A") |
Closest named color
The nearest CSS colour keyword to #0F172A is black (#000000).