#000205
L 0.08 · C 0.02 · H 250
Deep Ocean
Submerged blues and abyssal blacks for depth.
- Mood
- Dark
- Colors
- 5
- Space
- OKLCH
Deep Ocean, color by color
Submerged blues and abyssal blacks for depth.
#010c1b
L 0.15 · C 0.04 · H 250
#002b4d
L 0.28 · C 0.08 · H 245
#005b90
L 0.45 · C 0.12 · H 240
#4a99c3
L 0.65 · C 0.1 · H 235
Create Deep Ocean in PHP
Parse the catalog values as one ordered scale. The input remains readable while PHPColor normalizes every color.
<?php
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.08 0.02 250)',
'oklch(0.15 0.04 250)',
'oklch(0.28 0.08 245)',
'oklch(0.45 0.12 240)',
'oklch(0.65 0.10 235)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.08 0.02 250)',
'oklch(0.15 0.04 250)',
'oklch(0.28 0.08 245)',
'oklch(0.45 0.12 240)',
'oklch(0.65 0.10 235)',
]);
Inspect every palette color
Palette operations preserve order, so iteration and conversion produce values in the same visual sequence.
<?php
foreach ($palette->to('oklch') as $color) {
echo $color->toCss().PHP_EOL;
}
foreach ($palette->to('oklch') as $color) {
echo $color->toCss().PHP_EOL;
}
Format Deep Ocean for CSS
Export hexadecimal values for compact tokens or convert the full palette to perceptual CSS notation.
<?php
$hex = $palette->toHex();
$css = $palette->to('oklch')->toCss();
$hex = $palette->toHex();
$css = $palette->to('oklch')->toCss();