My issue is that I have no other lights or anything affecting the scene and yet the shade of the material is completely different from the one I intended for.
I'm using meshBasicMaterial because I initially thought the issue was related to lights and this material type isn't affected by lights.
import React, { Suspense } from 'react'
import { Canvas } from 'react-three-fiber'
import { Box, OrbitControls } from 'drei'
function Scene() {
return (
<>
<Box args={[1, 1, 1]}>
{/* Incorrect shade of blue */}
<meshBasicMaterial color="#013566" />
</Box>
</>
)
}
export function App() {
return (
// Desired shade of blue
<Canvas style={{ background: '#013566' }}>
<OrbitControls />
<Suspense fallback={null}>
<Scene />
</Suspense>
</Canvas>
)