Slate & Ice

Industrial grays with a sharp, frozen blue edge.

Mood
Cool
Colors
5
Space
OKLCH

Slate & Ice, color by color

Industrial grays with a sharp, frozen blue edge.

#ebf3f6 L 0.96 · C 0.01 · H 220
#abc2ce L 0.8 · C 0.03 · H 230
#6b8ba2 L 0.62 · C 0.05 · H 240
#23588a L 0.45 · C 0.1 · H 250
#002362 L 0.28 · C 0.12 · H 260

Create Slate & Ice 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.96 0.01 220)',
    'oklch(0.80 0.03 230)',
    'oklch(0.62 0.05 240)',
    'oklch(0.45 0.10 250)',
    'oklch(0.28 0.12 260)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.96 0.01 220)', 'oklch(0.80 0.03 230)', 'oklch(0.62 0.05 240)', 'oklch(0.45 0.10 250)', 'oklch(0.28 0.12 260)', ]);

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 Slate & Ice 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();

Keep exploring

Build on Slate & Ice