Marine

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

Hex
#0ea5e9
sRGB
rgb(14 165 233)
OKLCH
oklch(0.6847 0.1479 237.3)

Marine is a curated PHPColor catalog color with the canonical value #0ea5e9.

Create Marine 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;

$marine = Color::parse('#0EA5E9');
use PhpColor\Color\Color; $marine = Color::parse('#0EA5E9');

ColorInterface

$marine

#0ea5e9 · oklch(0.6847 0.1479 237.3)

Build a Marine harmony

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

<?php

$harmony = $marine->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $marine->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#0ea5e9
  2. 1#c976c8
  3. 2#dc7f2b
  4. 3#51b261
Marine and its three generated partners

Generate a Marine scale

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

<?php

$oklch = $marine->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 = $marine->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 Marine for the web

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

<?php

$hex   = $marine->toHex();
$rgb   = $marine->toCss('srgb');
$oklch = $marine->to('oklch')->toCss();
$hex = $marine->toHex(); $rgb = $marine->toCss('srgb'); $oklch = $marine->to('oklch')->toCss();
hex
#0ea5e9
rgb
rgb(14 165 233)
oklch
oklch(0.684687 0.147869 237.323)

Keep exploring

Continue from Marine