Nearest named color · #020D1F
#020D1F
Nearest named color: Void
#020D1F (rgb(2 13 31), hsl(217 88% 6%), oklch(0.159 0.043 255.5)) is closest to the named color Void. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#020D1F
oklch(0.159 0.043 255.5)
Color conversions
- HEX
- #020d1f
- RGB
- rgb(2 13 31)
- HSL
- hsl(217 88% 6%)
- HWB
- hwb(217 1% 88%)
- OKLCH
- oklch(0.159 0.043 255.5)
- OKLab
- oklab(0.159 -0.011 -0.042)
- CIE Lab
- lab(3.48 0.25 -12.64)
- LCH
- lch(3.48 12.64 271.1)
- CMYK
- cmyk(94% 58% 0% 88%)
Tints · Shades · Tones
Tints
- 132132
- 293646
- 404C5B
- 586371
- 727B87
- 8C949E
- A8AEB6
- C4C8CE
- E1E3E6
Shades
- 010A19
- 010714
- 01050F
- 00030A
- 000206
- 000103
- 000001
- 000000
- 000000
Tones
- 0A1728
- 162231
- 222C3B
- 2E3844
- 3B434E
- 484F58
- 555B62
- 63676C
- 727376
Color harmonies
Complementary +180°
- 020D1F
Void
- 150B00
≈ Balsamico
Analogous -30° +30°
- 020D1F
Void
- 001017
≈ Black Glaze
- 0C091E
≈ Tristesse
Triadic +120° +240°
Split-complementary +150° +210°
- 020D1F
Void
- 1B0600
≈ Soy Sauce
- 0F0E00
≈ Chinese Black
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 19.44:1 · APCA Lc 106
Ag
FailOn black
WCAG 1.07:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 19.44:1 (AAA) · APCA Lc 106
Contrast pairs
Code snippets
CSS
:root {
--void: #020d1f;
--void-rgb: 2 13 31;
--void-oklch: oklch(0.159 0.043 255.5);
}
.element {
color: var(--void);
background-color: hsl(217 88% 6%);
border-color: oklch(0.159 0.043 255.5);
}Tailwind CSS v4
@theme {
--color-void: #020d1f;
--color-void-50: #eef6ff;
--color-void-100: #dfe9f7;
--color-void-200: #c9d5e7;
--color-void-300: #aab9ce;
--color-void-400: #8ea0b8;
--color-void-500: #7388a3;
--color-void-600: #62738a;
--color-void-700: #4e5c6e;
--color-void-800: #384351;
--color-void-900: #262f39;
--color-void-950: #151b23;
}SCSS
$void: #020d1f;
$void-rgb: 2, 13, 31;
$void-light: mix(#fff, $void, 20%);
$void-dark: mix(#000, $void, 20%);
.element {
color: $void;
box-shadow: 0 0 0 2px rgba($void, 0.35);
}