OKLCH to HEX: #0069A8

Also known as: Tailwind sky-700

Result

oklch(0.50397 0.12809 245.460) → #0069A8

Values are shown at full precision, so converting back gives exactly #0069a8. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    oklch(0.50397 0.12809 245.460)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.05320
    b = C·sin H = -0.11652
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.457740
    m′ = L − 0.1056·a − 0.0639·b = 0.517026
    s′ = L − 0.0895·a − 1.2915·b = 0.659214
  4. 4. cube

    l = 0.457740³ = 0.095908
    m = 0.517026³ = 0.138209
    s = 0.659214³ = 0.286470
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.000002
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.141261
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.391559
  6. 6. linear → sRGB, × 255

    R = 0.00003 × 255 = 0.01 → 0
    G = 0.41176 × 255 = 105.00 → 105
    B = 0.65881 × 255 = 168.00 → 168
  7. 7. RGB → HEX

    #0069A8

All formats

HEX
#0069a8
RGB
rgb(0 105 168)
RGB (legacy)
rgb(0, 105, 168)
HSL
hsl(202.50 100.00% 32.94%) → hsl(203 100% 33%)
HWB
hwb(203 0% 34%)
OKLCH
oklch(0.504 0.128 245.5) · oklch(50.4% 0.128 245.5)
OKLab
oklab(0.504 -0.053 -0.117)
Lab (D50)
lab(42.00 -7.19 -41.68)
LCH (D50)
lch(42.00 42.30 260.21)
Display P3
color(display-p3 0.1721 0.4052 0.6396)
Linear sRGB
color(srgb-linear 0.0000 0.1413 0.3916)

Gamut: sRGB and Display P3

#0069A8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.128 and Display P3 reaches 0.166; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #0069a8;
  color: rgb(0 105 168);
  color: hsl(203 100% 33%);
  color: oklch(0.504 0.128 245.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.504 0.128 245.5);
}
/* arbitrary values */
class="text-[#0069a8] bg-[oklch(0.504_0.128_245.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1721 0.4052 0.6396); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0069a8 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #227BBB · oklch(0.564 0.128 245.5) · ΔL +0.06
  • #005795 · oklch(0.444 0.128 245.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?