Nearest named color · #2E4A68
#2E4A68
Nearest named color: Stay the Night
#2E4A68 (rgb(46 74 104), hsl(211 39% 29%), oklch(0.401 0.061 251.2)) is closest to the named color Stay the Night. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#2E4A68
oklch(0.401 0.061 251.2)
Color conversions
- HEX
- #2e4a68
- RGB
- rgb(46 74 104)
- HSL
- hsl(211 39% 29%)
- HWB
- hwb(211 18% 59%)
- OKLCH
- oklch(0.401 0.061 251.2)
- OKLab
- oklab(0.401 -0.02 -0.058)
- CIE Lab
- lab(30.29 -3.53 -21.06)
- LCH
- lch(30.29 21.36 260.5)
- CMYK
- cmyk(56% 29% 0% 59%)
Tints · Shades · Tones
Tints
- 415B76
- 546B85
- 687D94
- 7C8EA2
- 91A0B1
- A6B3C1
- BCC5D0
- D2D8E0
- E8EBEF
Shades
- 273F59
- 1F354B
- 182A3E
- 122030
- 0B1724
- 060E18
- 02060C
- 010204
- 000000
Tones
- 364F6B
- 3E556D
- 465A70
- 4F6072
- 576575
- 5F6A77
- 677079
- 6F757C
- 787B7E
Color harmonies
Complementary +180°
- 2E4A68
Stay the Night
- 5D4220
≈ Satoimo Brown
Analogous -30° +30°
- 2E4A68
Stay the Night
- 194F5F
≈ Genetic Code
- 424468
≈ Wooed
Triadic +120° +240°
- 2E4A68
Stay the Night
- 643A40
≈ Kung Fu
- 3C4F2B
≈ Bronze Tone
Split-complementary +150° +210°
- 2E4A68
Stay the Night
- 643C2D
≈ Chocolate Escape
- 4F491F
≈ Uniform Green
Tetradic +90° +180° +270°
- 2E4A68
Stay the Night
- 5E3A52
≈ Bruised Bear
- 5D4220
≈ Satoimo Brown
- 26523D
≈ Fresh Mint
Contrast & accessibility
Ag
AAAOn white
WCAG 9.14:1 · APCA Lc 91
Ag
FailOn black
WCAG 2.29:1 · APCA Lc 11
Best text color: #FFFFFF
WCAG 9.14:1 (AAA) · APCA Lc 91
Contrast pairs
Code snippets
CSS
:root {
--stay-the-night: #2e4a68;
--stay-the-night-rgb: 46 74 104;
--stay-the-night-oklch: oklch(0.401 0.061 251.2);
}
.element {
color: var(--stay-the-night);
background-color: hsl(211 39% 29%);
border-color: oklch(0.401 0.061 251.2);
}Tailwind CSS v4
@theme {
--color-stay-the-night: #2e4a68;
--color-stay-the-night-50: #e9f7ff;
--color-stay-the-night-100: #daeafc;
--color-stay-the-night-200: #c2d6ef;
--color-stay-the-night-300: #a2bad7;
--color-stay-the-night-400: #84a2c2;
--color-stay-the-night-500: #6889ae;
--color-stay-the-night-600: #587493;
--color-stay-the-night-700: #465d76;
--color-stay-the-night-800: #324457;
--color-stay-the-night-900: #222f3d;
--color-stay-the-night-950: #111c26;
}SCSS
$stay-the-night: #2e4a68;
$stay-the-night-rgb: 46, 74, 104;
$stay-the-night-light: mix(#fff, $stay-the-night, 20%);
$stay-the-night-dark: mix(#000, $stay-the-night, 20%);
.element {
color: $stay-the-night;
box-shadow: 0 0 0 2px rgba($stay-the-night, 0.35);
}