SteelBlue

A mid, cool blue -- the dependable foundation of trustworthy interfaces.

Hex
#4682b4
sRGB
rgb(70 130 180)
OKLCH
oklch(0.5880 0.0993 245.7)

SteelBlue is a standard CSS named color with the canonical value #4682b4.

Create SteelBlue in PHP

Parse the catalog’s canonical value once, then keep the resulting color object throughout the rest of your code.

<?php

use PhpColor\Color\Color;

$steelblue = Color::parse('#4682B4');
use PhpColor\Color\Color; $steelblue = Color::parse('#4682B4');

ColorInterface

$steelblue

#4682b4 · oklch(0.5880 0.0993 245.7)

Build a SteelBlue harmony

tetradic() keeps SteelBlue and adds three partners at equal quarter-turns around the OKLCH hue wheel.

<?php

$harmony = $steelblue->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $steelblue->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#4682b4
  2. 1#a16593
  3. 2#a57037
  4. 3#458e63
SteelBlue and its three generated partners

Generate a SteelBlue scale

Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.

<?php

$oklch = $steelblue->to('oklch');

foreach ([0.97, 0.92, 0.84, 0.74, 0.66, 0.58, 0.48, 0.40, 0.32, 0.24, 0.16] as $lightness) {
    $step = $oklch->withChannel('l', $lightness);
}
$oklch = $steelblue->to('oklch'); foreach ([0.97, 0.92, 0.84, 0.74, 0.66, 0.58, 0.48, 0.40, 0.32, 0.24, 0.16] as $lightness) { $step = $oklch->withChannel('l', $lightness); }
50
100
200
300
400
500
600
700
800
900
950
Explore named color scales →

Format SteelBlue for the web

The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.

<?php

$hex   = $steelblue->toHex();
$rgb   = $steelblue->toCss('srgb');
$oklch = $steelblue->to('oklch')->toCss();
$hex = $steelblue->toHex(); $rgb = $steelblue->toCss('srgb'); $oklch = $steelblue->to('oklch')->toCss();
hex
#4682b4
rgb
rgb(70 130 180)
oklch
oklch(0.588001 0.0993388 245.739)

Keep exploring

Continue from SteelBlue