#e0edf8
L 0.94 · C 0.02 · H 240
Steel Blue
Strong, industrial blue-grays.
- Mood
- Cool
- Colors
- 5
- Space
- OKLCH
Steel Blue, color by color
Strong, industrial blue-grays.
#a8c9e2
L 0.82 · C 0.05 · H 240
#5795c8
L 0.65 · C 0.1 · H 245
#1a609e
L 0.48 · C 0.12 · H 250
#043264
L 0.32 · C 0.1 · H 255
Create Steel Blue 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.94 0.02 240)',
'oklch(0.82 0.05 240)',
'oklch(0.65 0.10 245)',
'oklch(0.48 0.12 250)',
'oklch(0.32 0.10 255)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.94 0.02 240)',
'oklch(0.82 0.05 240)',
'oklch(0.65 0.10 245)',
'oklch(0.48 0.12 250)',
'oklch(0.32 0.10 255)',
]);
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 Steel Blue 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();