protected $_scopeConfig;
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
$this->_scopeConfig = $scopeConfig;
}
$storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
$this->_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);
section_id, group_id, field_id values you can find in etc/adminhtml/system.xml path in your custom / (default vendor) Module