Nearest named color · #2A1E3E
#2A1E3E
Nearest named color: Midnight Velvet
#2A1E3E (rgb(42 30 62), hsl(263 35% 18%), oklch(0.266 0.059 299.7)) is closest to the named color Midnight Velvet. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#2A1E3E
oklch(0.266 0.059 299.7)
Color conversions
- HEX
- #2a1e3e
- RGB
- rgb(42 30 62)
- HSL
- hsl(263 35% 18%)
- HWB
- hwb(263 12% 76%)
- OKLCH
- oklch(0.266 0.059 299.7)
- OKLab
- oklab(0.266 0.029 -0.052)
- CIE Lab
- lab(14.05 12.27 -18.59)
- LCH
- lch(14.05 22.28 303.4)
- CMYK
- cmyk(32% 52% 0% 76%)
Tints · Shades · Tones
Tints
- 3C3150
- 4F4562
- 635A74
- 777087
- 8C869A
- A29DAD
- B9B5C1
- D0CDD6
- E7E6EA
Shades
- 231935
- 1C132B
- 160E23
- 10091A
- 0A0512
- 05030A
- 020104
- 010001
- 000000
Tones
- 322745
- 3A304B
- 423A52
- 4A4358
- 534D5F
- 5C5766
- 64616C
- 6D6B73
- 777679
Color harmonies
Complementary +180°
- 2A1E3E
Midnight Velvet
- 222903
≈ Lindworm Green
Analogous -30° +30°
- 2A1E3E
Midnight Velvet
- 1A2342
≈ Cool Balaclavas Are Forever
- 351A33
≈ Nightly Voyager
Triadic +120° +240°
- 2A1E3E
Midnight Velvet
- 3A1D02
≈ 90% Cocoa
- 002D26
≈ Guerrilla Forest
Split-complementary +150° +210°
- 2A1E3E
Midnight Velvet
- 302400
≈ Black Swan
- 0B2D15
≈ Nori Green
Tetradic +90° +180° +270°
- 2A1E3E
Midnight Velvet
- 3E1914
≈ Rustic Red
- 222903
≈ Lindworm Green
- 002B32
≈ Daintree
Contrast & accessibility
Ag
AAAOn white
WCAG 15.51:1 · APCA Lc 102
Ag
FailOn black
WCAG 1.35:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 15.51:1 (AAA) · APCA Lc 102
Contrast pairs
Code snippets
CSS
:root {
--midnight-velvet: #2a1e3e;
--midnight-velvet-rgb: 42 30 62;
--midnight-velvet-oklch: oklch(0.266 0.059 299.7);
}
.element {
color: var(--midnight-velvet);
background-color: hsl(263 35% 18%);
border-color: oklch(0.266 0.059 299.7);
}Tailwind CSS v4
@theme {
--color-midnight-velvet: #2a1e3e;
--color-midnight-velvet-50: #f8f2ff;
--color-midnight-velvet-100: #ebe4f9;
--color-midnight-velvet-200: #d8cfea;
--color-midnight-velvet-300: #bdb1d1;
--color-midnight-velvet-400: #a397bd;
--color-midnight-velvet-500: #8c7ea8;
--color-midnight-velvet-600: #766a8e;
--color-midnight-velvet-700: #5f5572;
--color-midnight-velvet-800: #453e55;
--color-midnight-velvet-900: #2f2b3b;
--color-midnight-velvet-950: #1c1825;
}SCSS
$midnight-velvet: #2a1e3e;
$midnight-velvet-rgb: 42, 30, 62;
$midnight-velvet-light: mix(#fff, $midnight-velvet, 20%);
$midnight-velvet-dark: mix(#000, $midnight-velvet, 20%);
.element {
color: $midnight-velvet;
box-shadow: 0 0 0 2px rgba($midnight-velvet, 0.35);
}