#51b3d0
L 0.72 · C 0.1 · H 220
Midnight Tide
Abyssal blues sinking toward near-black.
- Mood
- Cool
- Colors
- 6
- Space
- OKLCH
Midnight Tide, color by color
Abyssal blues sinking toward near-black.
#008fbe
L 0.6 · C 0.14 · H 225
#0069a5
L 0.48 · C 0.16 · H 230
#004985
L 0.38 · C 0.15 · H 235
#002b5d
L 0.28 · C 0.12 · H 240
#00122e
L 0.18 · C 0.07 · H 245
Create Midnight Tide 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.72 0.10 220)',
'oklch(0.60 0.14 225)',
'oklch(0.48 0.16 230)',
'oklch(0.38 0.15 235)',
'oklch(0.28 0.12 240)',
'oklch(0.18 0.07 245)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.72 0.10 220)',
'oklch(0.60 0.14 225)',
'oklch(0.48 0.16 230)',
'oklch(0.38 0.15 235)',
'oklch(0.28 0.12 240)',
'oklch(0.18 0.07 245)',
]);
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 Midnight Tide 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();